Page 1 of 1

How do I reverse gravity without changing platform direction

PostPosted: Tue Apr 07, 2015 11:50 am
by thomas0611
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!

Re: How do I reverse gravity without changing platform direc

PostPosted: Tue Apr 07, 2015 12:58 pm
by A0Nasser

Re: How do I reverse gravity without changing platform direc

PostPosted: Tue Apr 07, 2015 1:45 pm
by thomas0611
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!