Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. 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.
  2.  
  3. 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