- Home /
How would I go about making something move to a position over time?
The idea is while holding down Space, an X will appear in front of the character, and the longer you hold it down the further the X will move away. If you let go of Space, it will dissapear. How would I make something happen over time? Any ideas? Thanks in advance!
Answer by Toasticuss · Apr 08, 2014 at 04:41 PM
This is a great tutorial which is close to what you are looking for - https://www.youtube.com/watch?v=cD-mXwSCvWc
It even has inputs, you can have the game object destroy itself when the key is let go.
Your answer
![](https://koobas.hobune.stream/wayback/20220613142238im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
JS Move object over time 1 Answer
Flip over an object (smooth transition) 3 Answers
Camera rotation around player while following. 6 Answers
Check the length of a line renderer? 2 Answers
Player follow object changes direction when the player does 0 Answers