How to do a keyboard input into a table cell?
JustJackmn
Member, PRO Posts: 9
How do you use the keyboard input to type a text value into a table cell and then make sure that once the user is done typing you use the save table behavior?
Best Answer
-
Armelline Posts: 5,368
If this logic is in an actor that is on the first scene to load, what's happening is probably that the actor is running the "Text attribute is not table cell" rule before the text attribute has been filled again. You need to either save and load the text attribute too, or add a condition saying "Text attribute is not empty". Essentially, the empty text attribute is overwriting the saved contents of the table cell.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Answers
Input the keyboard text into a text attribute and then change the table cell to that text attribute. To know when the user is done typing, check to see if the value of the text attribute has changed.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I'm having a problem when i reopen the app where the field goes blank. Everything works when I am in the app. When I change the text, the display of the text changes to match. When I leave the app and then reopen it, the field I just had text in is now blank.