Geometry Dash like rotation

Hi guys, I’ve been trying to make a Geometry Dash fan game for a while now but there’s something that’s bothering me a lot, for the player to rotate when in the air, I made 2 objects, one is the collision, and the other is the sprite , what I’m trying to do is check if the sprite is between 2 angles and when it touches the ground it changes to the closest angle, example: if the object is between 60 and 130 degrees, change it to 90, but I can’t find it a way to get this command into practice, I would appreciate it if you could help me.

Hi @MilkyDev !
Try this, and edit it to your needs