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
ok here is what i want to do
when i destroy an asteroid
i want it to spawn 1 to 5 minerals
if you can send me a capx
kiugetski.com/space
On Asteroid Destroyed
Repeat ceil(random(5)) times - Spawn Minerals
where is that repeat ceil
Develop games in your browser. Powerful, performant & highly capable.
System-repeat.
ceil(random(5)) is the expression for how many times to repeat. Ceil() rounds up.
ok found it but now the problem is they are all stacked XD
is there a way to not have them stacked ?
How do you want them to spawn then? You can position them however you want after creating them.
One way is to move at angle, for example 20 pixels at random(360) degrees.
ty so much it make it look much better