Hi
I know the title could be a little silly.
but it’s the more complete title.
So I’m making a Top-Down shooter with dual stick, and at the moment I’m trying to create a bunch of enemies to have a good selection of enemy to insert in the room.
So now I’m facing one technical problem, one of my enemy have a gun as linked object, the behavior of this enemy should to go to the player, stay in position if the distance with the player is minus then 200px. And after this start shooting 3 bullets each 1 sec. (this timing is an example).
To achieve this I add to the gun object 4 animation, the first 3 animation need to be loaded in sequence, after one animation finish the run, one bullet is fired, and the second animation is loaded, after the second animation a second bullet will be fired, and the third animation will start, and so on.
After all this animation on the gun, a new animation will start to give a delay time for the enemy to shoot again.
Now, all this thing when I have 1 enemy (and so also 1 gun) in the scene is perfect and works fine. But when I add another enemy (so 2 guns, one for enemy) no one start shooting.
In attach what I have done on script (is a little dirty 'couse I have done a lot try)
But at this point I have another question, If I want to try to achieve a gameplay style similar (but obviously more simple) to Enter in the gungeon or Isaac, I have to re-think my project? I see on Gdevelop is possible to create a room generator and a top-down shooter, but I’m getting a lot of problems to manage multiple instance of the same enemy with an IA a little bit more complex than “go to the player”.
P.S.
If the only problem here is I’m dumb, I can understand 'couse I have been using Gdev for a week