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 want to spawn an object randomly on the screen but exclude it from spawning in multiple areas on the screen, any easy way to make this happen?
Develop games in your browser. Powerful, performant & highly capable.
you don't want that the spawned sprites are overlapped?
on creating / spawn the objects (sprites) you can check if overlapping. If so, then move the sprites randomly again. in a loop (while(!overlapping)).
Hey that is a great idea, now to figure out the code.
So I get over lapping idea, but how do I say "if over lapping any object" then respawn with out specifying every object that may be in the layout.
you could add all the objects that you want to check to a family and just check if you are overlapping "family"
I'll try that, thanks
DAG and RamPackWobble good advice. it works like a charm now. Thanks.