1 |
type = 0; |
2 |
image_xscale = 1; |
3 |
image_yscale = 1; |
4 |
image_alpha = 0; |
5 |
con = 0; |
6 |
timer = 0; |
7 |
type = 0; |
8 |
if (room == room_dw_mansion_dininghall) |
9 |
type = 1; |
10 |
if (type == 0) |
11 |
{ |
12 |
sprite_index = spr_bullet_laser_circle; |
13 |
snd_play(snd_firework_send); |
14 |
vspeed = -20 - random(3); |
15 |
friction = 1; |
16 |
} |
17 |
else |
18 |
{ |
19 |
snd_play_pitch(snd_firework_send, 0.5); |
20 |
sprite_index = spr_pipis_egg; |
21 |
image_speed = 0; |
22 |
image_index = 0; |
23 |
if (x > room_width) |
24 |
{ |
25 |
dir = "left"; |
26 |
hspeed = -12 - random(3); |
27 |
} |
28 |
if (x < 0) |
29 |
{ |
30 |
dir = "right"; |
31 |
hspeed = 12 + random(3); |
32 |
} |
33 |
} |