How can "change attribute" be used to change the image?
Let's say you have two different images for a button and you want to have one image switch to the other when pressed or activated.
Does anyone know the specifics on how to do this?
I tried to use the method here: http://gamesalad.com/forums/topic.php?id=30832
...but I wasn't exactly sure exactly how to implement that into my rig. I tried a few things that didn't work. Are there any tutorials or videos on how to do an image swap using "change attribute?"
Does anyone know the specifics on how to do this?
I tried to use the method here: http://gamesalad.com/forums/topic.php?id=30832
...but I wasn't exactly sure exactly how to implement that into my rig. I tried a few things that didn't work. Are there any tutorials or videos on how to do an image swap using "change attribute?"
Comments
when touch is pressed
-change attribute self.image to the name of the pressed image
then open up the otherwise section of that rule and put a change attribute behavior changing self image to the name of the button up image
cheers