Disappearing actors when overlapped
I am playing around with 4 colored boxes as I am learning to move them around with a finger. I am successful with this as I have used:
on the actor
when touch is pressed
constrain self.position.x to device.mouse.position.x
constrain self.position.y to device.mouse.position.y
My only issue is that if the boxes overlap, the box that is underneath the box being touched, completely disappears. Any ideas?
on the actor
when touch is pressed
constrain self.position.x to device.mouse.position.x
constrain self.position.y to device.mouse.position.y
My only issue is that if the boxes overlap, the box that is underneath the box being touched, completely disappears. Any ideas?
Comments
I had the same problem on a test I did earlier in the year. Sure enough, the actors were stacking under each other as I dragged the first one around.
I suspect this may be what you are looking for? Worth a try and hope it fixes it:
http://gamesalad.com/forums/topic.php?id=21793#post-165456
Mike