Change X to YZ

3absh3absh Member, PRO Posts: 586
edited August 2019 in Working with GS (Mac)

Y=1 (integer)
Z=2 (integer)


x=12 (integer)

How can I code this simply?


  • 3absh3absh Member, PRO Posts: 586

    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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,937
    edited August 2019

    You can concatenate integers:

    Change attribute game.x to

    Demo attached.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.