I have multiple tiles in an array list. I want to set collision between them and the player. Currently, I am trying to do the collision check by a static boolean in the player class, but with this:
for(int i = 0; i < tiles.size(); i++) { if(tiles.get(i).collision) { Player.collision = true; }else{ Player.collision = false; } }
I'm guessing you can tell that if any of the tiles do not have the collision, neither does the player. Does anybody know what I should do?
Thanks!