Recently, Marty Billingsley wrote: > Some of my students are programming games in which the user makes a figure > move using the keyboard, via the keyDown message. For example, pressing > the "k" key makes the figure move 10 pixels to the right. The problem is > that the user has to release and press the key again to make the figure > move another 10 pixels -- he can't just hold down the key and have it > repeat the way a lot of games allow you to. > > Any ideas (a) why Rev isn't recognizing repeating keys, or (b) an easy way > to implement this? I don't see a keyStillDown message the way there's a > mouseStillDown message. > > Thanks for any hints you can give me.
You can use the keysDown function in a repeating/send-in loop to test the keys that are currently pressed on the keyboard. This must run independently of other scripts as a loop since it is a function that must be called by script. Regards, Scott Rossi Creative Director Tactile Media, Development & Design ----- E: [EMAIL PROTECTED] W: http://www.tactilemedia.com _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
