Y=1 (integer) Z=2 (integer)
->
x=12 (integer)
How can I code this simply?
I'm aware we can multiply by 10 and add
But I want to know if we can simply merge the two together without addition
You can concatenate integers:
Change attribute game.x to game.y..game.z
Demo attached.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Comments
I'm aware we can multiply by 10 and add
But I want to know if we can simply merge the two together without addition
You can concatenate integers:
Change attribute game.x to game.y..game.z
Demo attached.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User