Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
blank
22
Years of Service
User Offline
Joined: 4th Mar 2003
Location: My Computer
Posted: 22nd Aug 2004 09:05
hey all,
i was wondering i need to make a little thing for my game where the player needs to taps 2 buttons simutaneously to raise a meter up.
The meter will drop as the speed of the repetitions decreases. how do i get it so that it wont just go up if the player holds down one button and so that they have to release he last button before the next can be pressed?
if thats too complicated then please say and ill rewrite it. or try and add some source into it.
aprilfan
22
Years of Service
User Offline
Joined: 3rd Oct 2002
Location: Hell
Posted: 22nd Aug 2004 11:23
<click the source code button at the bottom of this post>


There you go try that.
Vespar
21
Years of Service
User Offline
Joined: 17th Jul 2003
Location: USA
Posted: 22nd Aug 2004 11:42 Edited at: 22nd Aug 2004 11:52
Some very simple code to get you started.
Opps didnt see your code posted, this code uses the "a" key and "l" keys.
Vespar

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 22nd Aug 2004 11:43 Edited at: 22nd Aug 2004 11:43
Alter the speed variable to control the "difficulty" of the meter, use LEFT & RIGHT key presses to keep the meter up.




BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.

Login to post a reply

Server time is: 2025-06-06 17:21:20
Your offset time is: 2025-06-06 17:21:20