Hi everyone !
I have charter in my game, how do i change image for him in game ? for example: if u will buy special item, charter will be red. but default he is blue. I tryed to add aditional animation to sprite with loop:yes, and in event sheet: charter.set animation. but it didnt work. please help !
P.S sorry for my worst english. i'm from Latvia
Develop games in your browser. Powerful, performant & highly capable.
if your character has animations you will have to create animations for each color, and change animations, not frames.
if your character is static change animation frames but set loop:no
I tried do animation frames. I added 2 frames,Finally i have 3 frames : 0,1,2 in 1 animation. Animation Loop: no. In game i do like this:
If webstorage.localvalue("charterstyle")=1 do charter. animation. set frame = 0.
If webstorage.localvalue("charterstyle")=2 do charter. animation. set frame = 1.
If webstorage.localvalue("charterstyle")=3 do charter. animation. set frame = 2
But it didn't work
Animation speed 0?
Yes, I forgot that:>>> set animation speed to 0