How do I invert movements?

Just started using Construct 2? Post your questions here

Post » Fri Apr 24, 2015 8:53 am

Hi all,
in my game I want to add a power up (or curse) which will invert the movements of the player (only left and right) for a small amount of time and then the movements will go back to normal. The player has the "platform" behaviors.
Any help? :)
B
3
Posts: 9
Reputation: 193

Post » Fri Apr 24, 2015 11:54 am

Your platform behavior needs not to have the "Default control" property to yes.
You need to have a keyboard plugin added to your project.
You need to have a Timer behavior added to your main character.

You need two groups of events that serve as "inputs". One regular where each key down does simulate the correct control, one "Invert" where controls are inverted.

On collision with the Curse, you deactivate the regular input group, activates the invert group and run the timer for the amount of time you want the controls to be inverted.
Then when the times runs up, you activate/deactivate the input groups accordingly and you are done.

See this example capx made in r203.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests