kimono
Well-known member
Hi, is there a possibility to make appear some doors exits when all enemies are killed in a level?
I tried to put a wait or a group and declare after the doors but it's not the correct solution.
Doors are item touch type.
A level example here:
I simply wish that after the death of the 2 sidm enemies, the doors appear
.
I tried to put a wait or a group and declare after the doors but it's not the correct solution.
Doors are item touch type.
A level example here:
Code:
music data/music/Horror_dance.ogg
panel data/bgs/nightmare/hallway_up/hallway_up.gif
order a
notime 1
scrollspeed 10
stagenumber 0
type 1 0 0
spawn1 1030 40 300
spawn2 1030 40 300
spawn3 120 20 300
spawn4 150 40 300
direction both
#---------------------
spawnscript data/scripts/spawnlevel/clockOff.c
at 0
#---------------------
wall 0 308 69 0 99 33 63 240
wall 199 279 157 118 212 193 33 240
wall 1590 308 -66 0 -41 26 66 237
hole 266 268 17 0 80 61 20
#---------------------
spawn sidm
flip 1
coords 200 280 0
at 100
spawn sidm
flip 1
map 3
coords 840 280 0
at 200
spawn mannequin_room_entry
@script
void main()
{
setglobalvar("Room", 4);
}
@end_script
flip 1
coords 1 200 0
at 0
spawn library_entry
flip 1
coords 1 200 0
at 0
spawn hallway_up_exit
flip 1
coords 1 200 0
at 0
spawn bedroom_entry
flip 1
coords 1 200 0
at 0
spawn study_entry
flip 1
coords 1 200 0
at 0
spawn trophy_room_entry
flip 1
coords 1 200 0
at 0
#---------------------
spawn Bin
flip 1
coords 999 999 0
at 0
spawn empty
@script
void main()
{
void P1 = getplayerproperty(0, "entity");
int x = getentityproperty(P1,"x");
int y = getentityproperty(P1,"y");
changeopenborvariant("xpos", x-240);
changeopenborvariant("ypos", 690-y);
}
@end_script
at 0
I simply wish that after the death of the 2 sidm enemies, the doors appear