Hey guys,
Im having a problem with pictures appearing above the player.
Im creating a interaction system, where if you talk to a NPC - a bunch of images appear over the head over the player, where you can decide what your action towards this npc will be. This will basically be an alternative to the regular "show choices", but more styleful.
Anyway my problem is that when ive set all the correct coordinates etc, it will only work in that specific map, when i go to a smaller, or bigger map - or if im talking to an NPC who is close to the borders of the map, the location of where the pictures are supposed to be, wont be correct anymore.
So far the only solution to this, that i can think of, would be for me to check how close the player, or npc, is to the borders of the map, and add or subtract from the coordinates based on that. But thatd be incredibly tedious, and difficult to pull off for me, and thats why im kinda hoping for a more efficient solution from you guys! To have the pictures always show over the correct tile in question.
Im having a problem with pictures appearing above the player.
Im creating a interaction system, where if you talk to a NPC - a bunch of images appear over the head over the player, where you can decide what your action towards this npc will be. This will basically be an alternative to the regular "show choices", but more styleful.
Anyway my problem is that when ive set all the correct coordinates etc, it will only work in that specific map, when i go to a smaller, or bigger map - or if im talking to an NPC who is close to the borders of the map, the location of where the pictures are supposed to be, wont be correct anymore.
So far the only solution to this, that i can think of, would be for me to check how close the player, or npc, is to the borders of the map, and add or subtract from the coordinates based on that. But thatd be incredibly tedious, and difficult to pull off for me, and thats why im kinda hoping for a more efficient solution from you guys! To have the pictures always show over the correct tile in question.