You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I've noticed that when you shoot a monster (even once, I've implemented gun animation) the monster is hit once for every monster that we have on the list. Issue is in Level.java(173:178)
So, I've noticed that when you shoot a monster (even once, I've implemented gun animation) the monster is hit once for every monster that we have on the list. Issue is in Level.java(173:178)
if(hurtMonsters)
{
Vector2f nearestMonsterIntersect = null;
Monster nearestMonster = null;
The problem seem to be those two variables outside the for loop. Moving them inside the for loop online 177 fixes the problem.
The text was updated successfully, but these errors were encountered: