Quote:
Originally Posted by zonedabone
It has to do with events being terminated as they're happening. Instead of putting the movement right in the while key is pressed event, make a Boolean variables become true when you press, and false when you depress. Now, make a method on world start. Inside and infinite loop, put while the variable is true, and then put your method in there. This is a workaround for many event/while related errors. This especially helps when using poses. Note that for the indirect example, if the first event is simply reading a variable, you can eliminate it and use the while/loop function directly.
Using one event:
Using two events:
|
Goofy spammer above me aside, I'd love it if everyone who made a game made it like this. I can't play games that terminate events either. meaning, unfortunately, that the While a key is pressed events require special programming as well. Oh fun.