I have multiple tiles in an array. 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:
if(tile[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!