- Home /
How do i dash in a direction an arrow is showing?
Hello, Im making a 2D game and If I put my finger on the display, I want the time to slow down and a arrow should appear. When I release my finger, I want the player to dash in to the direction the arrow was showing. The problem is, i am new in unity and dont know how to do this. I would be so grateful if someone would help me.
Answer by UnityPlum · Jan 20 at 10:46 PM
Look at Time.timeScale
on unity, and look at some more documentation like normalized vector3's and the direction formula is Vector3 direction = (to - from).normalized;
in unity.
Hope this helped
Your answer
Follow this Question
Related Questions
How to have coins burst out in random directions after destroying an object in unity? 2 Answers
How do I create a 2d shooting mechanic (Left and Right)? 1 Answer
SNAKE [Tail] 0 Answers
I need help with my dash 0 Answers
Drag and release 2 Answers