public void moveAndFadeOut ( Path path , long pathDuration , float fadePortion ) { move ( path ) ; setAlpha ( 1.0f ) ; _fadeStamp = 0 ; _pathDuration = pathDuration ; _fadeOutDuration = ( long ) ( pathDuration * fadePortion ) ; _fadeDelay = _pathDuration - _fadeOutDuration ; }
Puts this sprite on the specified path and fades it out over the specified duration .