/// <summary> /// call this eatch frame to check if the animation should move to the next frame, it will update if its time /// </summary> /// <returns>true if last frame is done showing</returns> public bool AnimationUpdate() { if (StaticTools.TimerPassed(frameTimer)) { frameTimer = StaticTools.TimerSet(frameTimeMs); if (++currentFrame >= this.GetAnimationLength()) { currentFrame--; return(true); } else { return(false); } } return(false); }