How can I prevent them from touching each other?
Thanks
Develop games in your browser. Powerful, performant & highly capable.
If you only need to spawn 2 objects, you can add this sub-event:
While Obj2 is overlapping Obj1 : Obj2 set position to random(....)
For multiple objects check out this demo:
howtoconstructdemos.com/spawn-objects-randomly-without-overlapping-2-capx