GP32 "double clicking"


TheMrCul

Still Fresh
Joined
Apr 18, 2003
Messages
52
Hi everyone,

I'm making a game where if you press and hold a direction it moves the character that way, but I also want to know how to make him run. I want you to have to "double click" the direction stick in that direction to run, but i have no idea how to program it. Can someone please explain to me how to do this?
Thanks
 
Hmm. My guess would be to poll at intervals instead of constantly, and look for a pattern like "RIGHT" (hold), "NONE" (release), "RIGHT" (hold) to active the "run" option. Or you could make it something like R+L to run if you have the extra buttons.
 
Thanks, yeah, I think I'll go with the right trigger to run. The double clicking is (at this point in time) above my programming skilzzzz. :)
 
Back
Top