This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-27 13:42:46

WarriorJem
Scratcher
Registered: 2012-06-25
Posts: 6

Help making worlds with doors

Well... I need help I dont know Xactly how to make worlds like you go through a door your in a certain room or go past a certain sign and you enter a part of the village. Well I;m making a game called, Zekrom has a quest.(please reply)

Offline

 

#2 2012-06-27 14:06:33

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help making worlds with doors

Hey WarriorJem; welcome to Scratch and the Scratch Forums.
Instead of posting your question on an unrelated topic, you should create a new topic in the correct forum about your problem. I moved your post to its own topic.

Offline

 

#3 2012-06-28 01:16:35

SOScratch
Scratcher
Registered: 2010-02-01
Posts: 100+

Re: Help making worlds with doors

Well, first of all, you will need to add detectors or "dummies" like I like to call them.

To be able to go through a door, you will need to create a sprite which is the actual door. Then add the following script:

when gf clicked
forever if <touching [player v]?> //this needs to be set to the player's sprite
hide
broadcast [<New Area> v] //change to location player is going to
end
Then on the sprites for the place where the player is moving to, set them to show when they receive the broadcast sent by the door sprite. Then make all the current sprites for the area the player was at before entering the door hide themselves when they receive the broadcast sent by the door sprite.

Now for the sprites where you can just walk to the edge of the screen to access a new area of a town or something.

First you need to create a script which is just a thin line. Then move the line to the very edge of the screen where the player needs to move to in order to get to the other area of a town or other place in your game.

Once you have created that, plug in this script:

when gf clicked
forever if <touching [player v]?>
hide
broadcast [<New Area> v]
end
Wait... did I just see correctly? Is that the EXACT SAME SCRIPT?!
YES! IT IS!

Think of the line as a door itself. Do the exact same thing you did with the door on this. But instead of looking like a door, it is a line.
It is that simple  big_smile

Just ask if you have any more questions!

Last edited by SOScratch (2012-06-28 01:17:21)


-SOScratch
Scratch On!

Offline

 

#4 2012-08-18 22:26:06

WarriorJem
Scratcher
Registered: 2012-06-25
Posts: 6

Re: Help making worlds with doors

Thx!

Offline

 

#5 2012-08-19 14:31:21

gooeygoo
Scratcher
Registered: 2012-05-07
Posts: 82

Re: Help making worlds with doors

I now this topic might not be help, but I used this as a door

when gf clicked
forever
if <<touching [player v]> and <key [space v] pressed?.>
broadcast [boss v]
If you want to have som ethingn happen before you can open the door, use a list called
list


Play meh games, dont beh shy!!!
http://scratch.mit.edu/users/gooeygoo

Offline

 

#6 2012-08-19 14:33:32

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Help making worlds with doors

gooeygoo wrote:

I now this topic might not be help, but I used this as a door

when gf clicked
forever
 if <<touching [player v]?> and <key [space v] pressed?>>
  broadcast [boss v]
end
If you want to have som ethingn happen before you can open the door, use a list called
<list>

Fixed  smile


http://i48.tinypic.com/2072ctw.gif

Offline

 

#7 2012-08-19 14:47:51

gooeygoo
Scratcher
Registered: 2012-05-07
Posts: 82

Re: Help making worlds with doors

Thanks!


Play meh games, dont beh shy!!!
http://scratch.mit.edu/users/gooeygoo

Offline

 

Board footer