17 lines
273 B
Plaintext
17 lines
273 B
Plaintext
|
if active = 1
|
||
|
{
|
||
|
hit = instance_nearest(x,y,obj_card)
|
||
|
if distance_to_object(hit) < 32
|
||
|
{
|
||
|
life -= 1
|
||
|
with (hit)
|
||
|
instance_destroy()
|
||
|
if life < 1
|
||
|
{
|
||
|
|
||
|
instance_destroy()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|