Page 1 of 1

Repeating action while holding stylus on the screen

PostPosted: Wed Jul 27, 2005 4:50 pm
by regis
Hi to you all,
I wonder how I can repeat the same action (some scripts) as long as the stylus touches the PPC screen and stops when it is removed (to be more precise, I would like to put an "autofire" option in my "shoot them up!" game so that the user does not have to tap too much on his screen to play: my game uses on screen buttons).
When I use the "mouse button down" event, the action plays only once. :-(
Many thanks to you all and long life to GE!
Regards
RĂ©gis

PostPosted: Wed Jul 27, 2005 8:36 pm
by BeyondtheTech
Since I don't have Game Editor Pro installed here at work, I'm theorizing that you can institute a global variable that will be turned ON for a Mouse Down event and and OFF for a separate Mouse Up event. As long as the variable is ON (or == 1), the ship will fire.

PostPosted: Thu Jul 28, 2005 12:32 am
by makslane
Other solution is create a timer on Mouse Button Down and destroy on Mouse Button Up.

In the timer event, fire your bullet

Repeating action while holding stylus on the screen

PostPosted: Thu Jul 28, 2005 8:10 am
by regis
Many thanks to both of you: it's a great help!
Regards
Regis