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

#1 2013-03-14 14:00:17

kellster1000
Scratcher
Registered: 2012-02-22
Posts: 4

need a door to appear when a boss is destroyed

I`m making a project called monsterhunt, and I`ve just got to the bit where you have beaten the first boss, but I don`t know how to make a door appear to get out of the forest.

Offline

 

#2 2013-03-14 14:25:12

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: need a door to appear when a boss is destroyed

Okay, so you want it so that when you beat the 1st boss, a door opens?

Okay then put this in the boss:

when i receive [game start v]
forever 
if < (defeated?) = [yes] >
broadcast [forest_door_Open v]
end
end
You could also use another variable, but it's your choice. Anyway, as you can see, you will need the boss to have a Boolean variable that sets to no in the beginning and yes once it's defeated.

Now, put this in your door:

when i receive [forest_Door_Open v]
go to x: (whatever) y: (whatever)
show
That should do it.

Regards,

CAA14

Last edited by CAA14 (2013-03-14 14:26:43)

Offline

 

Board footer