Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Testing: Rotate the Chest Lid Over Time

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

Debugging

  • If the lid doesn’t rotate at all, make sure you are adding the game frame delta time to the elapsed time, or it will stay 0, making the percentFinished 0, so it just never changes
  • If the lid keeps rotating past where you wanted it to go, make sure you are using an if-statement to only change the local rotation if the percent finished is less than 1.
  • If the rotation doesn’t go the correct direction, double check that you are using the same axis that you decided on in the beginning.