Hi.
Currently i have problems setting up a very simple ai. I have a enemy sprite with RTS and LOS behaviour. The enemy should chase the player sprite and when the player is in the line of sight(in the current cap it is 300) the enemy sprite should stop, play the shooting animation and spawn a bullet in direction of the player.
But something is wrong. The enemy chases the player but don't start shooting at the player. The enemy sprite start shooting when it arrives at the player, but this is much to late.
I think the problems must be with the private variables. So here is my cap file:
http://www.mediafire.com/file/90c6pb596 ... owTest.cap
The events for the enemy are in the enemy group in the event sheet. Maybe someone can be so nice to tell me what i'am doing wrong.
((edit: link repaired))