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.
- In the Entity panel, change Amount To Move to 10.
- Change the amount you increment the y position by from
this.amountToMove
to1
.
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.