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
I'm trying to get the enemies to fire at different intervals. I've tried so many different ways and looked at a lot of threads, but I am unable to get it to work... I don't know what I'm doing wrong.
Your help would be greatly appreciated.
Develop games in your browser. Powerful, performant & highly capable.
Use Timer behavior. When enemy is created, start the Timer for random(1,4) seconds.
In "On Timer" event, fire a bullet and re-start the timer for another random(1,4) seconds.
I tried that yesterday, among many other things. Your post got me to try again with the Timer behavior and I found the problem.
Thank you for your time!
This would be a good place to use probability tables.
You have a repeating timer, and on the timer you check if the return from the table is the value that means shoot.
Thanks for the tip Newt!