Hi! I'm new in this forum!. Sorry for my bad english
This is my last option because i've been trying make this to work by few methods.
I have a Sprite and Sprite2 in poles apart ( Sprite ---------------------------------> Sprite2 )
Sprite have Bullet behaviour and when i click a button, Sprite start to move to Sprite2
i have this:
-------Sprite is overlapping Sprite2 at offset (10,0) ---> Sprite set bullet speed 0
--------------------------------------------------------------------------- Sprite set Attacking True (Attacking is a instance variable)
-------system else--> Sprite set bullet speed 50
-----------------------------Sprite set Attacking to false
-------Sprite is Attacking --> Start Timer "Attacking" for 600 (once)
-------On Timer "Attacking"-->
-------------Sistem Everytick --> Sprite2 Substract 5 to Life (This life is a instance variable, have 30 initial number)
-------Sprite2 Life <or equal to 0 --> Sprite2 Destroy
-------------------------------------------------Stop timer "Attacking"
All this in For each Sprite
My idea is when Sprite arrive to sprite 2, sprite atack him! dealing 5 per second. When sprite2 is "dead" Sprite continue his way until collision with other instance of Sprite2. Like a Strategy Game.
but the problem is that Sprite when stop dont deal 5 per second and dont destroy Sprite2, Maybe i've done the timer incorrect? Thanks!! and sorry again for my english
To add information: There will be more instances of sprite and sprite 2, is like a Npcs battle.