Example #1
0
 public void Update(float dt)
 {
     if (animtype == ANIMTYPE._static) return;
        if (animtype == ANIMTYPE.once)
        {
     if (time.End()) { animtype = ANIMTYPE._static; AnimMul = tuv; return; }
     AnimPos = new Vector2(time.getInterval(AnimCount.X), AnimPos.Y);
        }
        if (animtype == ANIMTYPE.loop)
        {
     if (time.End()) time.Restart();
     AnimPos = new Vector2(time.getInterval(AnimCount.X), AnimPos.Y);
        }
 }
Example #2
0
 public void Stop()
 {
     animtype = ANIMTYPE._static;
        AnimPos = tuv;
 }
Example #3
0
 public void PlayLoop(float dt, float ix, float iy)
 {
     animtype = ANIMTYPE.loop;
        tuv = AnimPos;
        time.Start(p, dt);
        AnimPos = new Vector2(ix, iy) / animcount;
 }
Example #4
0
 public void PlayOnce(float dt)
 {
     animtype = ANIMTYPE.once;
        tuv = AnimPos;
        time.Start(p, dt);
 }
Example #5
0
 public void PlayLoop(float dt)
 {
     animtype = ANIMTYPE.loop;
        tuv = AnimPos;
        time.Start(p, dt);
 }