the RED box (has “Id”=1) automatically rotate ONLY when ITS stick is inside a wall
the BLUE box (has “Id”=2) automatically rotate ONLY when ITS stick is inside a wall
I guess the concept I have to tell the game is that when any one instance of the object meets the conditions then things must happen only to THOSE instances who meets the conditions. How can I do it?
EDIT: as asked here’s also the setup: the box is a white sprite, and each instance of it has a variable with the color it has to have. An effect picks this value and tints each instance.
The boxes and the walls have Physics 2.0 behaviour.
Hi, for everyone in the forum to better understand the situation, could you provide the other events and also explain how the box is set up (you have a blue and red box in the scene but in the event snip the box is white)?
Ok, updated the question. (The box is a white sprite, and each instance of it has a variable with the color it has to have. An effect picks this value and tints each instance.
The boxes and the walls have Physics 2.0 behaviour.)
Just a quick thought: you could try to use a boolean variable that is being set to true (in your case when the variable Id of Box = 1). The true-state of this variable would be the additional condition in the “stick repulsion”-event to make sure that the torque is not applied to both boxes.