|
if active = 1
|
|
{
|
|
var hit = instance_nearest(x,y,obj_card)
|
|
if distance_to_object(hit) < 16
|
|
{
|
|
life -= 1
|
|
with (hit)
|
|
instance_destroy()
|
|
if life < 1
|
|
{
|
|
|
|
instance_destroy()
|
|
}
|
|
}
|
|
}
|
|
|
|
if ( scr_outside_circle() ) {
|
|
direction = random(360)
|
|
x = xprevious
|
|
y = yprevious
|
|
}
|