Flipping gravity, inverted controls

0 favourites
  • 3 posts
From the Asset Store
Flip Timer for Games
$17.15 USD
65% off
Goodbye to sprite fonts, when you have something new on the anvil for your upcoming Games !
  • Hello!

    I've been trying to solve this issue for a few days now, but i cant seem to figure it out. I'll try to keep it short and understandable!

    The player object uses the platform behaviour, and this works as intended. I've implemented a feature that flips/inverts the gravity when a button is pressed down, and goes back to normal platform behaviour if the button is released.

    Everything works fine, except that the controls of the player object while "flipped", gets inverted. I.e; when pressing right arrow while flipped, the player moves to the left. Jumping and animations seem to work.

    Here is the events.

    Some solutions i thought about was to use simulate controls, with custom events regarding the controls. I tried this, but it resulted in not being able to jump somehow, and would require me to redo the events that handles certain animation triggers.

    I've also been fooling around with lots of different events and actions within the flipped state, but nothing seem to work.

    Any tips or directions are welcome!

  • I've made this example. While in the air press up/down arrows to change the gravity. It should be also easy to add left/right gravity.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I've made this example. While in the air press up/down arrows to change the gravity. It should be also easy to add left/right gravity.

    Thank you kind sir. Appreciate it! A nice twist to it, would never have thought of that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)