Is this possible? Texture change

  ... the case you feel the need for a new feature or want to submit one.

Is this possible? Texture change

Postby CyberCod » Sun May 27, 2012 8:44 pm

I've got a game that a buddy and me are working on, and I am wondering if there's a way to change the texture of an animated sprite without destroying and recreating it.

We know that we can create a new instance and move state values across to it, and then delete the old one, but really thats a lot of work just to change the texture.

If this feature doesn't exist, it would be very useful for powerups, costume changes, and stuff like that.

Thanks for your time
Intense one vs many martial arts combat!
check out Stickman Vs Infinite Ninjas on Google Play
https://play.google.com/store/apps/details?id=com.smiths.free
CyberCod
 
Posts: 77
Joined: Fri Apr 20, 2012 8:24 pm

Re: Is this possible? Texture change

Postby OzLark » Mon May 28, 2012 2:36 am

Check the AndEngine example: UpdateTextureExample
Did this post help you? Feel free to return the gesture by downloading Ninja Bees, creating a level (or more) and sharing it to the Ninja Bees website!

Ninja Bees - Our latest Android game, check it out on Google Play (free) or paid with no ads
OzLark
 
Posts: 1130
Joined: Sun Feb 05, 2012 3:19 am

Re: Is this possible? Texture change

Postby CyberCod » Mon May 28, 2012 3:59 am

Thank you, I'm looking over it now.
Intense one vs many martial arts combat!
check out Stickman Vs Infinite Ninjas on Google Play
https://play.google.com/store/apps/details?id=com.smiths.free
CyberCod
 
Posts: 77
Joined: Fri Apr 20, 2012 8:24 pm


Return to Features

Who is online

Users browsing this forum: No registered users and 3 guests