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 am using a action Create Object Random (100,1500),Random(100,500))
All works fin except I Create 10 of this items with a delay of 1 sec but sometimes the items overlap and I wane avoided that. Is that possebel?
You should provide more details about what you're trying to achieve if you want solutions which are optimal for your project, but I think the best way to achieve this is to spawn an invisible sprite instead of your object, then, as a sub-event, spawn your object if this sprite isn't overlapping with your object. (a collision detector)
After spawning the objects, check if their overlapping and if so randomize position again, it works if you have a small number of objects and alot of space to position them. Otherwise it will get stuck in that loop trying to reposition the objects forever, because it can't find a position that doesn't overlap.
You can also push out via the custom movement behavior or manually via events, or use physics.
Develop games in your browser. Powerful, performant & highly capable.
Thanks for help It workt fine.