I'm a C2 novice (like, ghost shooter and jungle platformer graduate novice!) and have decided the best way for me to get to grips with some more of the functionality is to try and make some simple games that I already play. That way I don't have to think too hard about designing game mechanics, just implementing them!
So I've decided Game 1 is going to be Doodle Jump - don't laugh, it passes the time on the train!! . On the face of it, it seems a pretty straightforward game and I've found the Infinite Jumper demo so that's given me a start but I've found myself struggling with how to prevent new platforms being created too close to eachother - Doodle Jump always has them spaced at least a platform height apart.
If you've seen the code in the Infinite Jumper demo, you'll see that platforms are created fairly well spaced from eachother. To get closer to the Doodle Jump appearance though, I've increased the number of platforms created each cycle but now occasionally a couple will be created really close to eachother. I'm fine if they touch cos I've just added a collision check but is there a way to create something like a 'proximity' check?
e.g. "If Instance A is within 20px of Instance B > Destroy Instance B (or move it away maybe?)"
Any advice would be greatly appreciated!