
08-04-2009, 08:01 PM
|
Will work for food. Maybe
|
 |
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
|
|
Ya, onKeypressed() functions off of the keyboard preferences on the OS, much like actual typing. So if you have onKeypressed(), and you hold down S, it will input S, then after a moment repeatedly call the function over and over, just like holding down S would do in a text editor. The speed of which it does this depends purely on how the persons keyboard is set-up, so it would not function the same for everyone -- not ideal for movement at all. |
|
|