Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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
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:
--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.
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