Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sprite.setPosition(Interpolation.sineOut.apply(startPositionX, endPositionX, animationAlpha), Interpolation.sineOut.apply(startPositionY, endPositionY, animationAlpha)); // I first let the sprites move away from their origin spawn point like in an explosion.
- sprite.setPosition(sprite.getX(), Interpolation.sineIn.apply(sprite.getY(), position.y - (Hurry.gameHeight / GameScreen.scaleFactor) / 2, animationAlpha)); // Then i let the 'gravity' pull the sprites down.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement