SCRATCH GOLD II
SCRATCH GOLD I
2 of 3

6.03 Solid walls

Test your player sprite again. Do you see that it can walk through the light grey walls?

screenshot

To fix this, you need to make the player sprite move back if it touches a light grey wall. Here’s the code you need to add inside your forever block below the direction blocks:

player

Try to make the player sprite move through a wall. If your new code works, this shouldn’t be possible.

screenshot
×
×

Cart