Is it possible to swap an objects properties in game, e.g:
BOX 1, PROPERTY ‘A’
BOX 2, PROPERTY ‘B’
BOX 1, PROPERTY ‘B’
BOX 2, PROPERTY ‘A’
I have tried using the copy command in the property actuator but I get the situation that one property copies first and not both objects simultaneously.
As always, thanks for looking and replies!
Ooh. That sounds a bit problematic - obviously Python would help this situation, but in logic bricks… I don’t know - maybe you can use a buffer property - box 1 takes box 2’s property and puts it in the buffer, same with box 2, and then it copies from there? I don’t really know - I’m not even sure if logic bricks perform from top down. You could try states to ensure one set happens before the other.
This does it. Assign the property values to variables, then swap them conditional upon some event.
SwapValues.blend (386 KB)
Thanks Equip, will try it out later!