2D Platform Planet

This forum is currently in read-only mode.
  • I have yet another problem. I am trying to make a Maria Galaxy style platformer. This is basicly a round object as a planet, and the gravity pulling towards this planet. That is all good, but I cant make the player move acording to the angle of the surface he is on. With game maker there is a command lengthdir_x and lengthdir_y. What would the function be in Construct? Also jumping acording to the players position. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Considering how gravity functions in platformer behavior, I'm not sure if this would be possible without doing custom movement.

  • Oh yes. It is using the custom movement. It uses change speed towards object for the gravity. But when I make it move horizontally, it doesnt move toward the planet untill it isnt moving any more :S

  • It's sort of possible with the platform behavior, although it's very flawed. I had to try it though, just for the hell of it XD

    http://www.mediafire.com/?kchccyjojnyf859

    For jumping to a different planet you would probably just add proximity to the Player to swap gravity based on the closer planet.

    Anyways, probably best to stay with Custom Movement, I was just bored.

  • My god, you are a gem! That works! The jumping to and from planets is using an object way bigger than the planet object as an invisible atmosphere so it only does the gravity thing when overlapping the big object. Thank you very much

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