Discuss Scratch

TheNoirAngel
Scratcher
23 posts

Need help with angles

So I'm currently trying to make a game on scratch in which the player's sprite must rotate so that the bottom (the feet) is on the ground. The terrain is a angled and I cannot find a script to sense the angle of a drawn terrain that the sprite is on, and rotate it so that it looks good. I hope this made sense. The project is https://scratch.mit.edu/projects/245104890/ Will credit anyone that helps. Thanks!

P.S. I cannot have the terrain be straight, for reasons I will not go into.
Methanatos
Scratcher
100+ posts

Need help with angles

An attempt at mountains.

If you don't have too many angles, the mountains of each angle can be a separate sprite. Or each angle can be a different color within the same sprite.

Or you could try to figure out the angle by using the slope-handling method in this platformer tutorial.
TheNoirAngel
Scratcher
23 posts

Need help with angles

Thank you, but I need something to point the character in a certain direction based on the slope. The slopes will get very different so I cannot code them individually. A better example of this is how the tanks move in ShellShock live, if you know of that game. I'm trying to emulate that move type.
TheNoirAngel
Scratcher
23 posts

Need help with angles

Actually, never mind. I found a slope detection project that will work great for me.

Powered by DjangoBB