Can you copy/paste text in-game?

harry9harry9 Member Posts: 2
edited January 2014 in Working with GS (Mac)
Is there a way I can provide text such as a level password that can be copied and later pasted?

Comments

  • slowcutslowcut Member, PRO Posts: 164
    You can do this, but it will work only in GS you won't be able to paste the text outside your game
    One (basic) way to do this:
    Create three text attributes (for example: text.password, text.copy, text.paste)

    edit text.password with your password, leave the two others blank

    to copy the password: when your condition is valid, change text.copy to text.password
    to paste the password: when your condition is valid, change text.paste to text.copy

    You can also use tables if you know how to use them.

    And you should save (and load) the copied password, to make sure, that it is still copied when your game crashes
Sign In or Register to comment.