|
1
|
if (active == true && !alarm[0])
|
|
2
|
alarm[0] = spawn_delay; gml_Object_obj_flowey_world_stalagmites_Alarm_0.gml
image_speed = 1;
active = false;
var play_sound = true;
with (obj_flowey_world_stalagmites)
{
if (sound_playing == true)
play_sound = false;
}
if (play_sound == true)
{
audio_play_sound(snd_undertale_spearrise, 1, 0);
sound_playing = true;
}
alarm[2] = 5;
|
|
3
|
if (image_index >= (image_number - 1))
|
|
4
|
{
|
|
5
|
image_speed = 0;
|
|
6
|
image_index = image_number - 1;
|
|
7
|
if (x < 810)
|
|
8
|
solid = true;
|
|
9
|
}
|
|
10
|
var pl_die = false;
|
|
11
|
if (place_meeting(x, y, obj_pl) && can_hit)
|
|
12
|
{
|
|
13
|
if ((image_index >= 5 && image_index < 10) || x > 810)
|
|
14
|
{
|
|
15
|
pl_die = true;
|
|
16
|
with (obj_flowey_world_stalagmites)
|
|
17
|
{
|
|
18
|
alarm[0] = -1; gml_Object_obj_flowey_world_stalagmites_Alarm_0.gml
image_speed = 1;
active = false;
var play_sound = true;
with (obj_flowey_world_stalagmites)
{
if (sound_playing == true)
play_sound = false;
}
if (play_sound == true)
{
audio_play_sound(snd_undertale_spearrise, 1, 0);
sound_playing = true;
}
alarm[2] = 5;
|
|
19
|
active = false;
|
|
20
|
image_speed = 0;
|
|
21
|
can_hit = false;
|
|
22
|
}
|
|
23
|
}
|
|
24
|
}
|
|
25
|
if (pl_die == true)
|
|
26
|
{
|
|
27
|
if (!alarm[1])
|
|
28
|
alarm[1] = 30; gml_Object_obj_flowey_world_stalagmites_Alarm_1.gml
instance_create_depth(camera_get_view_x(view_camera[0]) + 160, camera_get_view_y(view_camera[0]) + 80, obj_flowey_world_controller.depth - 1, obj_heart_flowey_world_split);
with (obj_flowey_world_stalagmites)
instance_destroy();
obj_pl.image_alpha = 1;
instance_destroy(obj_flowey_world_clover_dead);
|
|
29
|
if (!instance_exists(obj_flowey_world_clover_dead))
|
|
30
|
instance_create_depth(obj_pl.x, obj_pl.y, obj_pl.depth, obj_flowey_world_clover_dead);
|
|
31
|
}
|