So what i would like to know is when the user presses an arrow key how do i check what tile the character will be moving to.
if the character is on a 0 for grass and the user presses down i want to be able to prevent the player from moving onto a 1 for wall
the next question i have is how do i draw a .png to the map and not the display so that it stays put while my character moves around. i want to be able to do that without needing to put the enemy as a # on in the int map[]
Thank you very much for the help!
and i would prefer it if you dont just give me the answer. tell me what i should look at.
and dont complain about the style of my movement. i want a semi turn based game. the player presses down and moves 1 tile down and then the enemy and other stuff move accordingly 1 tile. something along those lines.
i have made a temporary google sites page and posted my program with sprites because its too long to put into this forum.
it can be found here: