ninjarob / FlugnutAndEngine

0 stars 1 forks source link

Sprite Animation #8

Open ninjarob opened 11 years ago

ninjarob commented 11 years ago

Research and, if necessary, build a sweet tool for animating our sprites.

austinhaws commented 11 years ago

Added wiki page demonstrating showing a simple sprite. https://github.com/ninjarob/FlugnutAndEngine/wiki/AnimatedSprite

The bird is not a simple looping sprite. It has several animations in one sprite so another example will need to be cooked for "tiled" sprites.

1hr

austinhaws commented 11 years ago

turns out it was just a variant of the .animate method to do just certain tiles. updated the wiki page to show this option. .25hr

austinhaws commented 11 years ago

http://stackoverflow.com/questions/9656298/andengine-fade-in-out-and-alpha-modifiers-not-working

sprite.setBlendFunction(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);

This seems to be the way to make a sprite have an alpha value.