Create 2D game map with images

Yes this is not exactly the right way to move the player :wink:

Are you using classes and objects in your game as shown by @TfGuy44 ? If not you should because this greatly increase the quality of your code and it’s flexibility!

Because in your code I see a mix of posX, posY : what do they represent?

I also suppose you want the player to loop when reaching the borders of the map is that right?

Lastly be careful to respect indentations and spaces in your code (press Ctrl+T in the Processing editor to do that automatically :wink: ) :

void down(){
  if (PosX != 64) {
    PosX = 64;
  }

  if (PosY != 0) {
    PosY = 0;
  }

   y = y + 16;
}