D
D
d1msk1y2021-06-13 18:12:18
Unity
d1msk1y, 2021-06-13 18:12:18

How to score points for somersaults or 360-degree turns?

The game has a cart that the player controls. The cart can be rotated around its axis (Left and right) as well as forward and backward (Flip)
Tell me how to make text like ("Incredible Backflip") appear when the player did a somersault or a 360-degree turn?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kachan, 2021-06-14
@d1msk1y

When you press the button to rotate on the update, start recording the total angle of rotation forward / backward until it reaches 360 or -360 (or release the key and check the total there), reset the count when the button is released.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question