Page 1 of 1

Way of disabling key event repeat in script?

PostPosted: Mon Jul 28, 2008 8:43 am
by skydereign
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.

Re: Way of disabling key event repeat in script?

PostPosted: Mon Jul 28, 2008 11:55 am
by stevenp
heres a post on that

viewtopic.php?f=4&t=5138


in your case you would put the toggle in a timer so it wouldent re enable imidiatley

Re: Way of disabling key event repeat in script?

PostPosted: Tue Dec 30, 2008 2:19 pm
by skydereign
I finally found a way to do this that I am content with, as it works for keyup and keydown.
http://game-editor.com/forum/viewtopic.php?f=6&t=6400