Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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:
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.
Develop games in your browser. Powerful, performant & highly capable.
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