Discuss Scratch

lulu120
Scratcher
7 posts

Projects

I have noticed a couple adoption projects that says we need to make a house. I don't know how to get it to go to a different “room,” when you click the doors. Any tips or ideas?
ErnieParke
Scratcher
1000+ posts

Projects

A easy way to code that is in a door sprite, put the following code:

when gf clicked
show

when this sprite clicked
switch backdrop to [Room2 v]//Makes you go to the second room.
broadcast [Room2 v]
hide

when I receive [Room1 v]//When you enter the first room...
show

Then in the door to go back:
(Remember, this is a second sprite.)

when gf clicked
hide

when this sprite clicked
switch backdrop to [Room1 v]//Makes you go to the first room.
broadcast [Room1 v]
hide

when I receive [Room2 v]//When you enter the second room...
show

Any questions about that?

Asking,

ErnieParke

Last edited by ErnieParke (Jan. 9, 2014 01:40:59)


Powered by DjangoBB