Question about Collide
I have two actors. Block1 and Block2 both squares. Both have gravity. They are made independently draggable with the mouse using..
When touch is pressed ..
constrain self. posX and Y to mouse posX andY
constrain self.mot.velX and Y too mouse X and Y
There is another actor. Blank, also a square, unmovable, that both the block actors can independently snap to.
While neither of the blocks are snapped into position on the blank square I would like them to collide with each other. But once either block has snapped in to position on the blank square I would like them not to be able to collide.
I created a boolean for each block (block1Snapped, block2Snapped ) and set up a rule...
when game.block1Snapped is false then Collide with (other block actor)
But it does not work this way, it only works when I change the above rule to...
when game.block1Snapped is false then Collide with ( actor of same name)
Why is this?
Comments
It's the physics of the actors that's causing the problem. Be sure to check out my project.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@Braydon Thanks. On the surface it seems like it would work. Im going to keep digging till I understand it.