hi. im currently developing a bomberman type of game . The character is fixed at the center of the screen… the floor does the movement.
THE PROBLEM:
I have a boulder in the game (which is obviously , the player can’t pass though). My question is how can i detect that my player is on a tile that is a boulder so that i can have a condition that the player can’t advance more? i am talking about tiledLayer here… im planning to use sprites instead but my game is already flooded by sprites and i want to retain the tiledLayer.
I have already read a topic here which has the same problem but i didnt got it coz im a newbee here… i just started 2 weeks ago for my OJT. please, if you can give me the simplest and detailed code that a newbee can understand… PLEASE I BEG YOU… HELP me. thanks in advance!
PS:
this is the code i used
player.collidesWith(backgroundTiledImage,true)
System.out.println(“you collided to the tiled image”);
but i want to detect only the collision between a particular tile in the tiledLayer(eg. wall,boulder)