The Code:

Topic

The Code:

Topic Progress:

This code should go inside the sprite we want to disappear when we touch it.

What it’s doing:

When the code starts we want to make sure the sprite is visible otherwise it could still be hidden from the previous time the code was run.

The code is inside a forever loop to ensure that it is always checking if the main sprite has touched this sprite otherwise it would check at the start of the code then stop checking.

The if statement is used to check if we touch the main sprite which is moving and if it does the code underneath is what it should do when they touch. In this case, it should hide and play a pop sound.

Course Discussion

@

Not recently active