Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_space_rock_Collision_obj_battle_space_frog_bullet

(view raw script w/o annotations or w/e)
1
if is_green
2
{
3
    var greenfrog = instance_create_depth(x, y, (depth - 1), obj_battle_enemy_attack_space_green_frog)
4
    with (greenfrog)
5
    {
6
        direction = irandom_range(45, 90)
7
        speed = 5
8
    }
9
}
10
instance_destroy()
11
instance_destroy(other)