Hello. I have a project with a lot of ship fight together (Not controlled by the player). So I made 2 ships. One blue, and one red. If a blue one as Line of Sight to a red one. He shoot. Same thing for the red one.
But, Only one ship of the red and blue want to shot. I'am 100% sure that all the condition are verified for all the ship.
So I made some test in a new projet. I created 2 sprites. One red and one blue. And copy/pasted the red one and the blue one 3 times (so 6 objects in the scene). And with the following events :
- "Red Sprite" // has Line of sight to "Blue Sprite".
----- Every one second // Shoot
- "Blue Sprite" // has Line of sight to "Red Sprite".
----- Every one second // Shoot
But only one of the red sprite want to shot (The first instance I created of the red sprite). And only one of the blue sprite want to shot (The first instance too). And the 4 others don't do anything... I realy need your help. I'm totaly stuck with this...
This is strange because in my main project, all the objects instance respond to others events (like start fighting the other ship if he see it, or not). I having trouble only with the shooting system. Can you help me please ?