Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_castle_02_controller_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var cam_x = camera_get_view_x(view_camera[0])
4
var cam_max = 1660
5
var cam_percentage = cam_x / cam_max
6
layer_x(fg_layer_id, (cam_percentage * -1660))
7
depth = -239