The
sprite should be able to walk through doors into other rooms.player
Your project contains backdrops for additional rooms:
Create a new ‘for all sprites’ variable called room
to keep track of which room the
sprite is in.player
When the
sprite touches the orange door in the first room, the game should display the next backdrop, and the player
sprite should move back to the left side of the Stage. Add this code inside the player
sprite’s player
forever
loop:
Every time the game starts, the room, character position, and backdrop need to be reset.
Add code to the start of your
sprite code above the player
loop, to reset everything when the flag is clicked:forever
Click the flag, and then move your
sprite until it touches the orange door. Does the sprite move to the next screen? Does the player
variable change to room
2
?