Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Feature]Chang Animation Sprite at Runtime #13

Open
raymondlu opened this issue Apr 19, 2013 · 1 comment
Open

[New Feature]Chang Animation Sprite at Runtime #13

raymondlu opened this issue Apr 19, 2013 · 1 comment

Comments

@raymondlu
Copy link
Owner

Imagine a circumstance: In a battle, your character got attack from enemies, and the HP decreased, for example the normal HP is 100, and now is 20, so you want to show the difference in character animation, for example by broken helmets. As you know, when creating animation, you only have one set of texture, so in order to create that effect: at the beginning of battle, the helmets of your character is good. But since the HP is down, the helmets become broken. you need to change the texture at the runtime.

Imagine another circumstance: for some reason, your character got level-up. You also want to show some difference in animation. For example, change the helmets from iron to gold. To do that you also need to change the texture at the runtime.

That is why I add the new feature "Change Animation Sprite at Runtime".
Please refer to the sample code "Replace animation sprite".

@landvibe
Copy link

very good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants