Simple AndEngine IEaseFunction Example

I found that IEaseFunction example at here. What I need is a simple bounce out for my play button. It took me more than one hour to make it work for me. And here how its work.


Sprite play = new Sprite(0, 0, play_region, getVertexBufferObjectManager());

play.registerEntityModifier(new MoveModifier(3, 100, 200, 200, 400, EaseBounceOut.getInstance()));


At the first line we initialize a new sprite. Then we register Entity Modifier for the sprite at the second line. The EaseBounceOut will make the play sprite bounce out for three seconds. It will bounce from x,y(100, 200) to x,y(200, 400).

You may also like...