61
Ask a Question / Re: Getting pinball flippers to push ball
« on: April 16, 2018, 12:26:08 am »
I hadn't accounted for checking if the flipper was moving. Thanks, that idea helped a lot.
I've attached a screenshot with the new code and a stencyl file for curious onlookers.
Given that I'm a noob there's probably a much better way to handle this.. So if anyone comes up with a better behavior, please do share.
I've attached a screenshot with the new code and a stencyl file for curious onlookers.
Given that I'm a noob there's probably a much better way to handle this.. So if anyone comes up with a better behavior, please do share.
On the released event, move the "set flipper up to 'false' " above the "do after". Just like you have done for the pressed event.
---
How do you handle the event, when user presses the button key, while the flipper is still moving between positions (either up or down)? Do you stop the current movement?
Something like, if actor has turning speed, stop it, and then start the new turning.