Tables - add row and change table value question
gooner
Lancaster, PAMember Posts: 135
1) Is it possible to add cell values at the same time you're adding a row?
2) If not, can I update multiple cells in a row when using Change Table Value, or is this only one at a time?
Any advice is much appreciated, thanks!
Comments
You can't change the cell type (integer, real, text, etc) when adding a row.
You can use the change table value to edit mutual with values at one time. Use the "+" in the behavior.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Use the "+" in the behavior. <--- This, thank you!
Another beginner question on adding a row and changing table value
When adding a row, is it immediately available to be evaluated in the tableRowCount (if I'm looking to edit that new row for instance) or must I save first then edit?
For ex:
1)Add Row
2)Save Table
3)Change Table Cell Value (using RowCount)
4)Save Table Again
Keep line #2 or is that overkill?
Thanks!
No need to save the table first. Table changes are made immediately. Saving a table just ensures that the table data & structure will be loaded when the app re-opens.
Number 1 and number 3 will work by themselves but you'd most likely want to save the table at crucial moments in your app (e.g. when the player passes a level or dies).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
very helpful, thanks!