ok, I set in the create event something call "throwboomerang=0", when it ests to 1 the boomerang appears and goes to the direction link its facing.
The problem is that when it comes back it wont destroy itself, it will stay on link's head xD.
so I tried this.
in step event:
if alarm[0]=-1{
move_towards_point(global.linkx,global.linky,5)
}
if distance_to_point(global.linkx,global.linky) <5 and alarm[0]=-1{
instance_destroy()
}
in alarm 0
move_towards_point(global.linkx,global.linky,5)
and alarm 1
sound_play(Boomerangspin)
alarm[1]=5
and on create event this
alarm[0]=15
alarm[1]=5
throwboomerang=1
it works, comes back and the boomerang disappears, but then when trying to throw it again I cant, cuz it was destroyed.
Any way to fix this? Thanks in Advance guys.