- Home /
How to detect if my Object did a 360° flip in 2D.
this is how my player looks like I will add jump boost when my Player makes a 360° flip. Can you guys help me?
Answer by SlowCircuit · Sep 28, 2020 at 09:41 PM
You just have to track the rotation every frame. Every time it rotates, track how much it rotated on a separate variable. When it reaches 360, do the boost. How you track it depends on how you're rotating it. You might also want to reset the variable when rotating the opposite direction or when the player goes longer than like half a second without any rotation.
Your answer
Follow this Question
Related Questions
Aim 360 degrees in 2D game 0 Answers
How can I flip my sprite on the X axis when it reaches the target? 1 Answer
How to implement a flip direction to my 2D character controller? 0 Answers
Issue with flipping an enemy when it reaches an edge 1 Answer
Flip 2D object on X axis because of a moving target. 1 Answer