Can I change table values from an actor's touch event?
dominic.koponen
Member Posts: 22
So I am having a problem with changing a table value from an actors' touch event.
Basically, I have a button (Sound On/Off) that when pressed, I want it to change the value in a table from True to False (change the sound to on to off) and vice versa. I keep looking around and I cannot seem to find any solutions on how to edit table attributes from this event.
I understand I could just make a game attribute that could be changed and do the same thing, but I wanted to do it in tables for organizational purposes. Having too many attributes can get messy
Thanks for any help!
Basically, I have a button (Sound On/Off) that when pressed, I want it to change the value in a table from True to False (change the sound to on to off) and vice versa. I keep looking around and I cannot seem to find any solutions on how to edit table attributes from this event.
I understand I could just make a game attribute that could be changed and do the same thing, but I wanted to do it in tables for organizational purposes. Having too many attributes can get messy
Thanks for any help!
Answers