Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_saloon_beverage_Create_0

(view raw script w/o annotations or w/e)
1
var audio_slide_in = audio_play_sound(snd_slide_whistle, 1, 0)
2
var audio_length = audio_sound_length(audio_slide_in)
3
bottle_y_target = 215
4
bottle_y_distance = y - bottle_y_target
5
bottle_slide_time = audio_length * 30
6
bottle_y_speed_avg = bottle_y_distance / bottle_slide_time
7
bottle_y_speed_current = bottle_y_speed_avg * 2
8
bottle_y_speed_decr = bottle_y_speed_avg / (bottle_slide_time / 2)