Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Solution: Write the Code to Close the Chest Lid

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

The closeChest and openChest functions are extremely similar, except for the sections that are underlined below.

Comment or Delete the Testing Code

Now that we have tested the code, you don’t want the open animation to just automatically start the closing animation. Delete or comment the code that starts the animation again.