JohnsonAugustine / andengineexamples

Automatically exported from code.google.com/p/andengineexamples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

change sprite

GoogleCodeExporter opened this issue · comments


In andengine I want to change sprite with different image.

already I knew the setcurrentTied method. In my case I want to change 

TextureRegion belonging to sprite  with othe TextureRegion.

I want to know that. Thanks a lot.

Original issue reported on code.google.com by sinsastu...@gmail.com on 24 Feb 2011 at 1:20

I would also like to see this sort of feature implemented.  I am trying to make 
a touch-based grid style game and I want to be able to update each grid tile 
when it is touched.  
It would be much simpler to just do this with a switch of the texture instead 
of trying to stuff some code in that removes the current sprite and then sets a 
new sprite in its place with the updated texture.

Original comment by Carter.J...@gmail.com on 15 Aug 2011 at 12:51

Even I am facing the same problem as i have to implement a slot machine with 
3X5 matrix so for that i have to highlight few textures to show the winning 
elements which can be done replacing current bitmap with highlighted one.

Other then that can i get the current visible items of the long sprite

Thanks

Original comment by er.surbh...@gmail.com on 31 May 2013 at 10:26

Please implement this feature in GLES 2. Add a function to Sprite like 
sprite.changeTexture()

Original comment by ariana...@gmail.com on 16 Jul 2015 at 5:44