So for example I have this code
Code:
if (wave == 1) { enemy.Move(1.5f, 2.5f); }
if (wave == 5) { enemy.Move(1.5f, 2.5f); }
if (wave == 2) { enemy.Move(3.5f, 1.5f); }
if (wave == 6) { enemy.Move(3.5f, 1.5f); }
if (wave == 3) { enemy.Move(5.5f, 1.5f); }
if (wave == 7) { enemy.Move(5.5f, 1.5f); }
if (wave == 4) { enemy.Move(7.5f, 2.5f); }
if (wave == 8) { enemy.Move(7.5f, 2.5f); }
and I want to make it more efficient, but I can't think of a way to group the integers. For example I want wave 1 , 5, 9, 13 and so on to move the entity at the exact same location, but in just 1 line of code. Sorry my brain is not functioning.
- - - Updated - - -
@
059 @
Ahl @
Raple Close, I was overthinking things.
I'm dumb af