Sooo ive had some problems with making sonic rotate on a slope could someone please help me out

What is the expected result

Explain what should happen when you run the game.

What is the actual result

Explain what is happening instead, what is going wrong.

Related screenshots

Please include a screenshot of the full related events including both conditions and actions.
And screenshots to help showing us the issue.

Project files (optional)

Insert a minimal game showing your issue in a .zip or .rar.

1 Like

Did not work :frowning: ineed him o follow how the slope rotates thats all but thank you for helping man:)

If you’re rotating a platform character on a slope try attaching it to a square block. The square block is the platform character with a simple collission mask that doesnt rotate - which you hide - use ‘pos’ to attach the thing that you animate - collission masks dont like being rotated on slopes.

pos as in position - set the x and y to

How about you give us the events you are using to do this?
Maybe we could tell you what’s wrong!

here is the post i hope you can read it well:)

I don’t want to sound like a party pooper but what you want to do …is something that even experienced users struggle to do…

Zero’s post is correct since at the moment it’s the only method to achieve what you want to do…that example is a mix of professional understanding of:
-Tiled, trigonomety,GD coding, physics ecc…
If you think to have it all, then go ahead and do it…but i guess your better choice is to wait that extension to be released in human language.

If you don’t want to wait…i suggest to start from Tiled and understand how he made the curved surface…alternatively i could suggest to try the curved movement extension …maybe you can achieve something with SVG curves…

alternatively i made a thread to automatically rotate an object on a slope here…
but it’s just to move on (“straight”, “angled”) terrains.

it did not include the slope rotation but while digging throu extensions i found a hedgehog platformer it has 360 sonic phisics incuding slope rotation but thank you all for helping me out :slight_smile:

then you can try my methid…it use 1 raycast on the ground to check the angle automatically…

it has the hedgehog platform it includes atuomutic slope rotation of the player but i would use that when im starting fresh with no extensions in use