2D Platform Planet

For questions about using Classic.

Post » Mon Jun 20, 2011 12:15 pm

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.
B
1
G
1
Posts: 6
Reputation: 437

Post » Mon Jun 20, 2011 3:59 pm

Considering how gravity functions in platformer behavior, I'm not sure if this would be possible without doing custom movement.
B
2
G
1
Posts: 12
Reputation: 474

Post » Tue Jun 21, 2011 2:13 am

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
B
1
G
1
Posts: 6
Reputation: 437

Post » Tue Jun 21, 2011 3:10 am

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.
B
13
S
6
G
6
Posts: 144
Reputation: 3,106

Post » Tue Jun 21, 2011 10:42 am

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 :D
B
1
G
1
Posts: 6
Reputation: 437


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests