1 |
if (image_alpha < 1) |
2 |
image_alpha += 0.2 |
3 |
switch scene |
4 |
{ |
5 |
case 0: |
6 |
speed = -2.5 |
7 |
target_dir = point_direction(x, y, obj_pl.x, obj_pl.y) |
8 |
direction = target_dir |
9 |
image_angle = direction |
10 |
if cutscene_wait(1) |
11 |
audio_play_sound(snd_undertale_swoosh, 1, 0) |
12 |
break |
13 |
case 1: |
14 |
var release_speed = speed_max |
15 |
speed = lerp(speed, release_speed, 0.5) |
16 |
break |
17 |
} |
18 |
|
19 |
if place_meeting(x, y, obj_pl) |
20 |
{ |
21 |
instance_destroy(obj_flowey_world_spear_spawner) |
22 |
speed = 0 |
23 |
if (!alarm[1]) |
24 |
alarm[1] = 30alarm[1]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_fast)
with (obj_flowey_world_spear)
instance_destroy()
obj_pl.image_alpha = 1
instance_destroy(obj_flowey_world_clover_dead) |
25 |
if (!instance_exists(obj_flowey_world_clover_dead)) |
26 |
instance_create_depth(obj_pl.x, obj_pl.y, obj_pl.depth, obj_flowey_world_clover_dead) |
27 |
} |