Little problem

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply
Author
800 Rep
Post Options Post Options   Quote Mrx32 Quote  Post ReplyReply Direct Link To This Post Topic: Little problem
    Posted: 28 May 2012 at 2:00pm
Hi everyone ...

I just discovered the software and I have a little problem ...

I want to view objects at random, but the problem is that some will appear in the same place


this is what gives his






Edited by Mrx32 - 28 May 2012 at 2:01pm
Back to Top
19,860 Rep
Post Options Post Options   Quote sqiddster Quote  Post ReplyReply Direct Link To This Post Posted: 29 May 2012 at 12:34am
I think this is what you are after...
Keep in mind with this method there will always be a tiny chance the objects will spawn on top of each other, and this chance increases as you fill the screen. That is why you have the adjustable repeat loop. An alternative would be a 'while' loop as this is dangerous as it can hang and crash the whole game.
Back to Top
800 Rep
Post Options Post Options   Quote Mrx32 Quote  Post ReplyReply Direct Link To This Post Posted: 29 May 2012 at 11:37am
Ok thanks....
For the problem of superposition I just found (all simple) just destroy this one ...

Edited by Mrx32 - 29 May 2012 at 11:41am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down