Player/Character physics when moving toward a ramp

Just started using Construct 2? Post your questions here

Post » Tue Sep 16, 2014 8:00 pm

Hello everyone,

i have some issues about the physics of my player-character.
When the character is moving toward a ramp, it should turn the angle of its sprite.
I've added the physics behaviour to the player-sprite and now i'm a little bit closer to my goal...
But when the character is moving, it's permanently felling over its own and start to rotate.
I've tried some differently settings for the behaviour, but its not working properly.
Am I on the right way?

I'm sorry for my bad english! Thanks for any help in advance!
B
4
Posts: 5
Reputation: 225

Post » Tue Sep 16, 2014 8:02 pm

Does your player character also use the platformer behaviour?

If you post your .capx we can help :)
B
62
S
23
G
10
Posts: 647
Reputation: 10,578

Post » Tue Sep 16, 2014 8:08 pm

Thanks for your reply!

Yes, the character has its platform-behavior too.

The .capx is attached!
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 5
Reputation: 225

Post » Tue Sep 16, 2014 8:29 pm

As a good rule of thumb, don't combine those behaviours - I've removed physics and added the following event that does what you need :D

Image

Feel free to tweak to fit your needs.
You do not have the required permissions to view the files attached to this post.
B
62
S
23
G
10
Posts: 647
Reputation: 10,578

Post » Tue Sep 16, 2014 8:37 pm

Hell yeah! Thank you, buddy! Thats what I wanted :)

Thread can be closed.
B
4
Posts: 5
Reputation: 225


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest