You can now press the button down, but it gets stuck there! Your challenge is to write the code in the onCollisionExit function that sets the button back to its original animation frame. Remember that the first animation frame is 0, and your code should look a lot like the code in the onCollisionEnter function.
Scripting Part 3: Finishing the Game Loop
Challenge: Set the Animation Back
You don’t have access to this lesson
Please register or sign in to access the course content.