Way of disabling key event repeat in script?
Posted: Mon Jul 28, 2008 8:43 am
When adding a keydown event, you are allowed to enable or disable repeat. Is there a way to do so for an event in a script? I'm trying to make an object move 1 tile when pressing down a button. I have set a move variable but when I press down the key, it moves farther than the desired tile per move. Is there another way of fixing this through script?
-Edit
Found a fix, as a result of pressing right, it disabled all events from that object, and I also switched x=x+64; to a moveto. I added another object that enabled the events again if right was not pressed. It works for now, but my question remains.
-Edit
Found a fix, as a result of pressing right, it disabled all events from that object, and I also switched x=x+64; to a moveto. I added another object that enabled the events again if right was not pressed. It works for now, but my question remains.