How do I reverse gravity without changing platform direction

Get help using Construct 2

Post » Tue Apr 07, 2015 11:50 am

Hey all,

Working on a reversed gravity mechanic for a 2d sidescrolling platformer. I was wondering if there is a way to easily adjust platform controlling directions along side with the gravity swap.

i.e.:

Now (what I don't want)

Normal gravity: Hold (Left Key) to simulate platform Left movement / / Hold (Right Key) to simulate platform Right movement

Reversed gravity: Hold (Right Key) to simulate platform Left movement / / Hold (Left Key) to simulate platform Right movement

I'm not really sure why... Left should be left and right should be right.. regardless of whether I'm up-side down or not...

I have worked around this by switching controls when gravity is reversed but this feel kind of awkward and jerky....

Any ideas?

Thanks a lot for reading!
B
7
S
2
Posts: 51
Reputation: 627

Post » Tue Apr 07, 2015 12:58 pm

Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,145

Post » Tue Apr 07, 2015 1:45 pm

Huh.... that might actually be a good solution to just set gravity to a -(x) instead of changing the angle of gravity....

Great suggestion, thanks!
B
7
S
2
Posts: 51
Reputation: 627


Return to How do I....?

Who is online

Users browsing this forum: Boxels, qroft and 7 guests