Undertale script viewer

← back to main script listing

gml_Object_obj_targetchoiceshoe_Create_0

(view raw script w/o annotations or w/e)
1
image_speed = 0;
2
xxx = 0;
3
if (x <= obj_target.x)
4
    hspeed = global.attackspeed + random(global.attackspeedr);
5
if (x > (obj_target.x + obj_target.sprite_width))
6
    hspeed = -(global.attackspeed + random(global.attackspeedr));
7
if (global.weapon == 13)
8
    hspeed *= 1.25;