Converting Text Table values into a text string

Hello all!

I created a custom keyboard based on @tshirtbooth model. I'm trying to include a backspace button, and to do that I created a table that inputs individual letters in their own index.

I'm running into some issues of what to do next. I want to be able to convert each index in a column into a single text attribute.

For example:

Column: 1
Row:
1 a
2 i
3 m
4 e

From there, I need to take each letter in the column to change game.typing into text string "aime"

Any hints?

Kev

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The concatenate function is ".." (without the quotes) between two strings. You could manually combine the rows by doing Change Attribute game.typing to tableCellValue(game.Table,1,1)..tableCellValue(game.Table,2,1)..tableCellValue(game.Table,3,1)..tableCellValue(game.Table,4,1).

    Or you can automate the process by using a loop (see my demo attached) and use the loop counter as your row number:

    Change attribute game.typing to game.typing..tableCellValue( game.Table , self.Loop Counter ,1)

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

Sign In or Register to comment.