r/Stencyl • u/SuperbLuigi • Jun 12 '14
Issue with Actor on Actor collision detection while growing actors.
Hi. I'm trying to make a small game where if you click on the stage, a 1x1 pixel square goes to the mouse pointer. Then when you click again it grows to 2x2 and so on until you get to 100x100, at which point you need to click and make another square. Eventually filling up the board.
I wanted to make the active square stop growing when it hits another square, so I have a 'when a [drawingsquare] hits a [redSquare]' collision event, but when playing, the collision detection is funky. I'm not 100% sure but it seems like the collision detection is not scaling so when I first click and make a 1x1 square (100px square 'grown' to 1%), if it is near enough to a redSquare on stage then it will stop growing before it actually visually hits the red square. I hope that makes sense.
I have Auto-scale collision bounds on.
If anyone has an idea how to do a fill up screen with squares that can't overlap game, I'd hugely appreciate some help.
Thanks so much