1 | if (place_meeting(x - 1, y, obj_pl) || place_meeting(x + 1, y, obj_pl)) |
2 | { |
3 | x += (sign(x - obj_pl.x) * 3); |
4 | x = clamp(x, xstart, 580); |
5 | } |
6 | if (x >= 580 && noloop == false) |
7 | { |
8 | audio_play_sound(snd_screenshake, 1, 0); |
9 | image_index = 1; |
10 | obj_flowey_world_controller.scene += 1; |
11 | obj_spikes_flowey_world.image_index = 1; |
12 | scr_cutscene_start |
13 | noloop = true; |
14 | } |