// Ifs allow for diagonal movement, if-else will prevent diagonal movement
 public override void Update(Vector2 OFFSET)
 {
     spawnTimer.UpdateTimer();
     if (spawnTimer.Test())
     {
         SpawnMob();
         spawnTimer.ResetToZero();
     }
     base.Update(OFFSET);
 }
Example #2
0
        public override void Update(Vector2 OFFSET, Player ENEMY)
        {
            spawnTimer.UpdateTimer();

            if (spawnTimer.Test())
            {
                SpawnEggSac();
                spawnTimer.ResetToZero();
            }

            base.Update(OFFSET, ENEMY);
        }
Example #3
0
        public override void Update(Vector2 OFFSET, Player ENEMY)
        {
            shotTimer.UpdateTimer();

            if (shotTimer.Test())
            {
                ShootArrow(ENEMY);
                shotTimer.ResetToZero();
            }

            base.Update(OFFSET);
        }