Hello everyone.
I have the expression: Ball.AnimationName = BallFamily.AnimationName
I need to insert another object value into this expression, instead of Ball for example Ball_2, depending on another global variable. How is this possible?
If you mean the object name I don't think that's possible but if you describe in general what you are trying to do in the game, maybe there is a better way.
Develop games in your browser. Powerful, performant & highly capable.
You can use the ternary operator:
(BallNumberVar=1 ? Ball.AnimationName : Ball_2.AnimationName)=BallFamily.AnimationName
You can use the ternary operator: (BallNumberVar=1 ? Ball.AnimationName : Ball_2.AnimationName)=BallFamily.AnimationName
This really helped me. Thank you very much.