Undertale script viewer

← back to main script listing

gml_Object_obj_blockbullet2_Create_0

(view raw script w/o annotations or w/e)
1
down = 0;
2
if (instance_exists(obj_greenspeargen))
3
    rating = obj_greenspeargen.rating;
4
else
5
    rating = 10;
6
image_speed = 0;
7
countdown = instance_number(object_index);
8
if (countdown <= 1)
9
    image_index = 1;
10
part = 0;
11
site = choose(0, 1, 2, 3);
12
alarm[0] = 1;
gml_Object_obj_blockbullet2_Alarm_0.gml

if (site == 0) truesite = 1; if (site == 1) truesite = 0; if (site == 2) truesite = 3; if (site == 3) truesite = 2; image_index = truesite; if (site == 0) { x = obj_spearblocker.x - 300; y = obj_spearblocker.y; } if (site == 1) { x = object0.x + 300; y = object0.y; } if (site == 2) { x = object0.x; y = object0.y + 300; } if (site == 3) { x = object0.x; y = object0.y - 300; } move_towards_point(object0.x, object0.y, 8 * speedmod); active = 1;
13
active = 0;
14
speedmod = 1;
15
alphoid = 0;
16
image_alpha = 0;
17
object0 = 264;
18
dmg = 7;