Skip to content
Forum Archive

Simple Game

13 posts

mikm#edited

Simple Game

I finally decided to stop procrastinating and try working with AVS again and started reworking all of my presets. I decided to do something with the mouse control, and this is what I came up with. The game is pretty straightforward, keep the black lines from reaching the bottom.

(btw...is there any easy way to only trap the first 'click' so that click+drag doesn't regiser on the buttons?)

[EDIT]Realized I forgot to turn off Enhanced Deflate in winzip. Same file, though.[/edit]
NemoOrange#
Entertaining for like 15 seconds until you get into the pattern of just clicking across in order. Needs to have more randomization.

814 is my current high score.
Shock Value#
Re: Simple Game

Originally posted by m²k
(btw...is there any easy way to only trap the first 'click' so that click+drag doesn't regiser on the buttons?)
Yeah you can do that. Each frame, only register a mouse click if the mouse was not down on the last frame. It shouldn't be too hard to do that. Just set a variable at the end of your code to the getmousekb(3) on that frame. Then on the next frame, compare that variable to the current getmousekb(3). Very addicting game, nice work!
mikm#
Originally posted by NemoOrange
Entertaining for like 15 seconds until you get into the pattern of just clicking across in order. Needs to have more randomization.

814 is my current high score.
Will fix that...
sidd#
Yeah you can do that. Each frame, only register a mouse click if the mouse was not down on the last frame. It shouldn't be too hard to do that. Just set a variable at the end of your code to the getmousekb(3) on that frame. Then on the next frame, compare that variable to the current getmousekb(3). Very addicting game, nice work!
I suspect that would just toggle on off on off each frame as you hold down the mouse button.
hungryskull#
I made it so holding down the mouse doesn't work.
skupers#
You should make it FPS independant. It went way to fast, until I adjusted the framerate slider. You can also very easy that way, just set the framerate slider to 10 or something fps.