Hey everyone,
I am currently making a game which is written in lua, I want it to change the background image when the player goes in a certain place. I have written this code but it will not work.
if ((player.x <= display.contentHeight / 3.8) and (player.x >= display.contentHeight / 3.5) and (player.y >= display.contentWidth / 100)) then
print(“entered town 1”)
end
Is there anything else that I could to do fix this problem?
Thank you