Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_waterfall_water_ripples_north_overworld_yellow_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var starting_y = camera_get_view_y(view_camera[0]) + camera_get_view_height(view_camera[0]) + 2.5 + 20
4
var target_y = camera_get_view_y(view_camera[0]) - 2.5
5
if (y < target_y && wrap_around == true)
6
{
7
    var y_offset = target_y - y
8
    y = starting_y - y_offset
9
    var crash_prevent = 5
10
    obj_water_ripple_controller_waterfall.x_last = x
11
}
12
if (can_move == true)
13
    y -= 1
14
image_speed = 0.1