public bool StartAnimation(AnimationInfo pAnimInfo) { //Set Animation to Beginning of Track mCurrentFrame = 0; //Set Current Animation to Parameter mCurrentAnimation = pAnimInfo.ID; mCurrentAnimation_Length = pAnimInfo.Length + 1; mCurrentAnimation_Speed = pAnimInfo.Speed; //Update src_Rectangle with new coordinates UpdateSrcRect(); mIsComplete = false; return true; }
public GameEffectKit_Explosion_02() : base() { ASSET_NAME = "Ship_MASTER"; SRC_RECTX = 0; SRC_RECTY = 512; SRC_RECTWIDTH = 128; SRC_RECTHEIGHT = 128; ANIM_INFO = new AnimationInfo(4, 4, 8); ORIGIN = new Vector2(64, 64); }
public GameEffectKit_Explosion_01() : base() { ASSET_NAME = "Ship_MASTER"; SRC_RECTX = 0; SRC_RECTY = 128; SRC_RECTWIDTH = 64; SRC_RECTHEIGHT = 64; ANIM_INFO = new AnimationInfo(2, 4, 4); ORIGIN = new Vector2(32, 32); }