public virtual void Update(GameTime gameTime)
        {
            CheckSprites();

            if (type == AnimatieTypes.Dead)
            {
                if (currentSprite.AnimatieL.Counter == currentSprite.AmountFrames - 1)
                {
                    Dead = true;
                }
                else
                {
                    currentSprite.Update(gameTime);
                }
            }
            else
            {
                if (Points > 100)
                {
                    AttackDamage = beginAttackDamage * Points / 100;
                }

                if (type == AnimatieTypes.Hit)
                {
                    if (!isSetTimer)
                    {
                        timer      = gameTime.TotalGameTime.TotalSeconds;
                        isSetTimer = true;
                    }

                    if ((gameTime.TotalGameTime.TotalSeconds - timer > 0.5))
                    {
                        isSetTimer = false;
                        IsHit      = false;
                    }
                }

                if (type == AnimatieTypes.Attack)
                {
                    if (currentSprite.AnimatieL.Counter == currentSprite.AmountFrames - 1)
                    {
                        HasAttacked = true;
                    }
                }

                Positie += Velocity;
                RectBuild();
                currentSprite.Update(gameTime);
            }

            if (Dead && Game1.currGameState == GameLoop.Play)
            {
                Game1.currGameState = GameLoop.Dead;
                Positie             = new Vector2(Game1.ScreenWidth, Game1.ScreenHeight);
            }
        }
        public virtual void Update(GameTime gameTime)
        {
            CheckSprites();

            Positie += Velocity;
            RectBuild();
            currentSprite.Update(gameTime);
        }
        public void Update(GameTime gameTime)
        {
            Positie += Velocity;
            CheckSprites();
            RectBuild();

            if (currentSprite.AnimatieL.Counter == currentSprite.AmountFrames - 1 && IsCollected)
            {
                IsTaken = true;
            }
            else
            {
                currentSprite.Update(gameTime);
            }
        }
 public void Update(GameTime gameTime)
 {
     CheckSprites();
     currentSprite.Update(gameTime);
 }