Hello, I'm having problems with my game and the spawning. I'm going to include a screen shot of my problem along with the .capx. Basically, at the beginning of the layout, I have a for loop that generates 10 platforms and random positions. However, the problem is some overlap each other. How would I fix this?
Thanks <img src="smileys/smiley17.gif" border="0" align="middle" />
.capx
dl.dropbox.com/u/78257325/Climb.capx
photo
dl.dropbox.com/u/78257325/problem.png
+on start of layout -> spawn platform at random(layoutwidth),random(layoutheight) +platform: [invert] is SET +while +platform: is overlapping object -> platform: set position to random(layoutwidth),random(layoutheight) +[empty] -> platform: set SET to true
put your platform in the family 'object'
and add a boolean variable 'SET' with default false
Develop games in your browser. Powerful, performant & highly capable.
Hi Yann thanks for your reply,
Could you possibly post an example of the method that you stated above?
I'm not use to families yet.