thank you @Manto1 for the Tic Tac Toe template. i tried to go through your template but i cannot understand how you change attribute Self-image to X.png,, and O.png. Where are X.png and O.png refered to in the attributes of TapAreas ?
Also could you or anyone explain when you need to use %symbal ( modulo operation) and when like your tic tac toe for 2 players,, you didnt need to use at all... kk
Answering my own question on image swapping using Change Behavior.
kkchong June 7 Posts: 57MEMBER Flag thank you @Manto1 for the Tic Tac Toe template. i tried to go through your template but i cannot understand how you change attribute Self-image to X.png,, and O.png. Where are X.png and O.png refered to in the attributes of TapAreas ?
GameTeamOne January 21 Posts: 85GAMEHUNK Flag @thebitmaster Lots of folks have been asking about the image swapping portion of the shop demo we showed. Many may not realize that you can change an actor image using the Change Attribute behavior as opposed to the Change Image behavior. You can change self.image to ANY image in your library. All we were showing in the demo was a Change Attribute behavior with a table cell reference for the self.image value. Then in the table cell you can just type in the name of the image (without ".png"). Simple yet effective.
Comments
kk
kk
kkchong
June 7 Posts: 57MEMBER Flag
thank you @Manto1 for the Tic Tac Toe template. i tried to go through your template but i cannot understand how you change attribute Self-image to X.png,, and O.png. Where are X.png and O.png refered to in the attributes of TapAreas ?
GameTeamOne
January 21 Posts: 85GAMEHUNK Flag
@thebitmaster
Lots of folks have been asking about the image swapping portion of the shop demo we showed. Many may not realize that you can change an actor image using the Change Attribute behavior as opposed to the Change Image behavior. You can change self.image to ANY image in your library. All we were showing in the demo was a Change Attribute behavior with a table cell reference for the self.image value. Then in the table cell you can just type in the name of the image (without ".png"). Simple yet effective.