Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_petal_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var y_variance = 10;
4
var h_speed = 3;
5
var x_dir = sign(320 - xstart);
6
y = ystart + (sin((random_offset + current_time) / 300) * y_variance);
7
x += (x_dir * h_speed);