Greeting Construct users,
How can you make an enemy spaceship open fire repeatedly? This is a picture of my code and a picture of an enemy spaceship, give me some ideas so I can make the enemy spaceship move and open fire on the player repeatedly:
Develop games in your browser. Powerful, performant & highly capable.
For each Enemy
Every 0.5 seconds
Spawn Laser at Enemy X and Y
This?
To klabundee:
Thank you for your instructions, I have now a better result. But I just have a question: I have searched for the action "Spawn Laser at Enemy X and Y" and I never found it, I think this action doesn't exist.
I believe klabundee was just simplifying the instruction.
These are actually two actions:
Every X seconds: --Spawn bullet; --Set bullet angle to angle(bullet.X, bullet.Y, enemy.X, enemy.Y)
You spawn the bullet and afterwards point it at your enemy (if the bullets are suposed to aim directly at the enemies).
Hope this helps.
Cheers!
WesleyDeveloper9
There are 2 ways to spawn
One is inside the Spawner's actions. So Enemy > Spawn Laser
And the other is inside System
System > Create Object
:)