Change Table Value using self.ID
Cactushead
Member Posts: 6
I have an Actor with an integer variable called "ID" which is to be used to reference a table row.
When I try to change a table cell value I try to set the Row to Self.ID but it does not work.
However when I change this to a number like 1 it does work.
Why is my Self variable not accepted in this situation, it seems like it should.
When I try to change a table cell value I try to set the Row to Self.ID but it does not work.
However when I change this to a number like 1 it does work.
Why is my Self variable not accepted in this situation, it seems like it should.
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
http://oi60.tinypic.com/2s1uf13.jpg
Like I said my actor's ID is an integer set to 1.
In addition to this, make sure you are selecting the attribute from the attribute drop-down list rather than typing it in (which doesn't work).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Hi @Cactushead Maybe try putting your value as a tablecellvalue into an attribute first.
So Change Attribute ValOne to (tableCellValue(game...etc
Change Table Value
Table TB_MeltBlocks
Row: self.ID
Column: "Counter" Value: ValOne
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I changed the Column from "Counter" to just Counter (without quotes) and it all worked.
Then I changed it back to "Counter" (with quotes) and it still worked.
This does not make any sense to me but hey, it's working so
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User