Hello, all. I'm trying to show a different image depending on which map you are on. For example, if you are on map 43, then I want to show the image "minimap_43.png". To do this I'm using:
Script : $gameScreen.showPicture(15, "minimap_$gameMap._mapId", 0, 0, 0, 100, 100, 255, 0)
but I get the error: "Failed to load: img/pictures/minimap_$gameMap._mapId.png", so it looks like it's interpretting "$gameMap._mapId" literally. I've tinkered with it a bit, but I'm at a loss. Anyone know what I'm doing wrong?
Thanks!
Script : $gameScreen.showPicture(15, "minimap_$gameMap._mapId", 0, 0, 0, 100, 100, 255, 0)
but I get the error: "Failed to load: img/pictures/minimap_$gameMap._mapId.png", so it looks like it's interpretting "$gameMap._mapId" literally. I've tinkered with it a bit, but I'm at a loss. Anyone know what I'm doing wrong?
Thanks!