Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_virovirokun_virus_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
infecttarget = collision_rectangle(x - 12, y - 12, x + 12, y + 12, obj_omawaroid_vaccine, false, true);
3
if (infecttarget != -4)
4
{
5
    d = instance_create(x, y, obj_animation_dx);
6
    d.sprite_index = spr_virovirokun_virus_pop;
7
    d.depth = depth;
8
    instance_destroy();
9
    infecttarget.speed = 0;
10
}