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
Hi. I'm trying to create some enemies using an array and a for loop. I'm currently spawning the same object using for loop and adding different instance variable value. But the problem is that it only adds the value to the first spawned object and leaving the rest of the objects spawned with 0 value to the instance variables. Any idea that can help me with this. Thank you in advance! :)
Develop games in your browser. Powerful, performant & highly capable.
Repeat 10 times Create Enemy Set Enemy health to int(random(100,200))
If it doesn't work for you, please post your code or project file.