Hello! What would be a simple way to make an object go up and down on the Y axis? My idea is to have 3 boxes that go up and down and i try to jump on them while they are on the air.
Thanks!
1 Answer
1You can cause objects to move by modifying their transform positions. In order to do this over time, typically you would create a script that does this in its Update() method.
Here are some pages that should get you started:
- Unity - Scripting API: Transform
- Unity - Scripting API: MonoBehaviour.Update()
- Unity - Scripting API: Time.deltaTime
Good luck!