|
-
Keyboard event handling is what i'm after, primarily for controlling sprites in gamming. I'm not talking about incrementing a variable by 1 with a repeated keystroke. I'm looking to trap the key when pressed, so that when the trap is made for a particular event, the trap automatically causes a stop on that event, so recursive traps can never take place. The return from the trap routine automatically does an ON unless an explicit OFF has been performed inside the trap routine.
Say instead of having to continously tap on the 'Right Arrow Key' to have an object move to the Right, why not hold down on the 'Key' and have the object gradually slide to the right while having the key held down and have the object stop its movement upon the 'Key' being depressed. I have not yet to see this in any Flash Game . . .
Kind of a critical fundamental to have in a game
------------------
Life is a waste of Time, Time is a waste of Life, So why not get wasted all of the Time and enjoy the Time of your Life!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|