dynamically changing images
What's the correct way to concatenate the self.Image attribute to dynamically change images?
Say I have a range of images called: myimage1.png, myimage2.png, etc…
And want to change an actor's image using the change attribute in a rule based on a game level attribute: HitCount
I've tried: myimage.game.HitCount..png
But this isn't working.
Can anyone help?
Say I have a range of images called: myimage1.png, myimage2.png, etc…
And want to change an actor's image using the change attribute in a rule based on a game level attribute: HitCount
I've tried: myimage.game.HitCount..png
But this isn't working.
Can anyone help?
Comments
Hi @gurechan
Try it in the following way: "myimage"..game.HitCount..".png"
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps