Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Testing: The Function to Start Opening the Lid

You don’t have access to this lesson

Please register or sign in to access the course content.

To test that everything works the way we want, we’ll temporarily call the startOpeningLidAnimation function in the start function.

Tip: Commenting Code with Ctrl + /

Comments are a useful way to put text that isn’t code in your code to keep track of what things are for, or places you want to return to later. It can also be used to keep a line or chunk of code from running temporarily, which is great for debugging!

You can use the shortcut Ctrl+/ (or Cmd+/ on a Mac) when your cursor is placed on a line of code to switch it back and forth from comment to normal code.