I have two sprites and I would like to be able to go "If spriteA.myvar = spriteB.myvar" or something like that.
I would rather not use containers or family. Any ideas?
Develop games in your browser. Powerful, performant & highly capable.
Is there a triggering condition for checking matches?
If not you can try a System: For each SpriteA and SpriteB: myVar = SpriteA.myVar.