Hi all,
I’ve had a look round the forums/google etc but can’t seem to find an answer to this issue. I’ll try and simplify.
I have a black box and white box in the center of the screen which are placed on top of each other. At the start of the game the black box is hidden under the white box (isVisible = false). I then have black circles fall down from and collide with the white box. The issue is that they are also colliding (creating collision events) with the black box even though it is hidden. The point is that if the user holds a button the white box will be hidden and the black box will appear in its place. They are both static physics objects, is this the problem? Essentially when the boxes are hidden they should not be able to interact with anything (although they still should be able to move (the black box xy position is tied to the white box xy position which is controlled with a virtual joystick)).
As they are going to swap around a lot during the course of the game I though it best not to keep adding and removing them? I dont think mask bits is an option either as when the boxes are visible they will need to interact with the circles. Do i need to add/remove physics bodies all the time (although I dont think you can do this in collision events)?