# Put Player back on his Feet

Hi Everyone, I’m doing a little 2D Skateboard platform game.
When my player is stuck, how do I make him stand up again at the current position ?

Try with a Tween position or just use forces with rotate

Can you give me more details about it please? (Tween position and Forces with rotate)
I’m really a beginner in physics

Try this:
Then you need a way to check if the player is stuck, maybe check the player angle, so in the case that is true I mean the player is rotated, then add an event with
Trigger Once
Tween player angle back to 0
Another event to delete the tween
Tween “BackTo0” finished
Remove Tween “BackTo0”
Since I cant post a gif from my website here just remove the space between the http
ht tps://www.ulisesfreitas.com/tilesets/BackTo0_edit_0.gif

1 Like

Wow much thanks for making that Gif ! I’m going to follow it step by step !

I’ll let you know if I did it right haha !

Thanks again !

1 Like

Hi Ulises,

it’s working but only if I start the game with the player at 90° angle.
and It’s working only 1 time, when my player fall on the floor again, the event is not repeating

If anyone has the same problem, I have found the solution, thanks to Ulises and a few more tries

Yes !!

You need to check if the player angle is different to 0
Everytime the player is rotated then move the trigger once events inside that logic.

So check

# Event

### Condition:

|| OR

• If player.Angle() == 90
• if player.Angle() == -90

## Subevent

### Condition

• Player is on floor
• Trigger once

### Action

• Tween the angle of Player bla…

# Add a new event running always

### Condition

• Tween “RotateBack” is finished

### Action

• Remove Tween “RotateBack”
1 Like

Much thanks for the help !

Sorry to bump this… is there a better way to get a U-Shape with 2dphysics??