Increasing enemy difficulty, references potentially not working?

You could but it’s not optimal, unless the project is really small or you’re just experimenting:

  • the player class should not care about such things, it will be busy doing other, player related things
  • for defining global difficulty level, it’s common to have a spawn manager / use game mode / game state
  • it’s quite normal to have it split between a manager that handles global difficulty and the many enemy classes - each doing its own calculations. An Orc Brute will level up differently than a Fire Wizard.

I’d keep this in the spawn manager. Btw, your cast is not connected to anything.

1 Like