Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 1: Moving Objects

Make it Repeat

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

Next, we’ll make this code repeat itself over and over again – about 60 times per second! To do this, we’ll use the tick function.

  1. Highlight the line of code you wrote in the start function.
  2. Press Ctrl+X or Command+X (on a Mac) to cut it.
  3. Press enter between the { } of the tick function to create a new line.
  4. Press Ctrl+V or Command+V (on a Mac) to move the line from the start function to the tick function.