2021-06-28 18:44:09 -07:00
|
|
|
if active = 1
|
|
|
|
{
|
|
|
|
move_towards_point(obj_player.x,obj_player.y,10)
|
2021-07-07 23:43:05 -07:00
|
|
|
var hit = instance_nearest(x,y,obj_card)
|
2021-06-28 18:44:09 -07:00
|
|
|
if distance_to_object(hit) < 100
|
|
|
|
{
|
|
|
|
direction = hit.direction - 90
|
|
|
|
speed = 10
|
|
|
|
}
|
|
|
|
if distance_to_object(hit) < 16
|
|
|
|
{
|
|
|
|
life -= 1
|
|
|
|
with (hit)
|
|
|
|
instance_destroy()
|
|
|
|
if life < 1
|
|
|
|
{
|
|
|
|
instance_destroy()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-07 23:43:05 -07:00
|
|
|
|
|
|
|
if ( scr_outside_circle() ) {
|
|
|
|
instance_destroy()
|
|
|
|
}
|