Raised This Month: $ Target: $400
 0% 

[Solved] Player Duck


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-05-2013 , 10:59   Re: Player Duck
Reply With Quote #4

If you print a message in that conditional statement it will print any time that it is true. It will be true the entire time that you are holding the button down (remember that it will execute really fast so what you may think is a single press is actually a long time relative to the computer).

If you only want the message to show when you first press the button then you need to save the previous value and compare it to the current value to detect the change of state.

If you search you can find all the information you need. Amazing how that works.
__________________

Last edited by fysiks; 07-05-2013 at 11:00.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode