Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 1: Moving Objects

Adjust the Speed of the Chest

You don’t have access to this lesson
Please register or sign in to access the course content.

Right now the chest moves in a single step, so it’s not much of an animation. To fix this, we’ll increase the amount it moves total, and decrease the amount it moves each tick.

  1. In the Entity panel, change Amount To Move to 10.
  2. Change the amount you increment the y position by from this.amountToMove to 1.

Now, each tick, the chest moves up by 1 and stops when it has moved up a total of 10 units.

Tweaking Values

Now that you have two different values to change, you can try changing both the total amount to move and the amount the chest moves each tick to make the animation look the way you want it to.