So I'm trying to make a weather effect for my game but I dont want to spawn in a hundred weather obj around my map so I figured I'd just add the animations to the client.screen instead,
Im having some issues with this though.
My game has an adjustable map screen so the players can change their map size/zoom to be more comfortable for them on whatever oddball monitor they happen to be playing on.
The problem I'm running in to though is that when I try to add the elements to the client.screen, if the element is wider than the map size itself, it offsets the map on the user's screen to the left.
My weather effect, for example is a 10x10 icon. If a user's screen is 32x32, I can add a 3x3 instance of it to the screen, but if I try to add a 4x4 instance of it, it shifts the user's map south and west by 8 tiles to fit those extra 8 tiles from the element to the screen.
It's even worse if a user has their map smaller like say... 12x12. Because then it'd shift their map by 28 tiles SW.
Anyone have any ideas on how to resolve this issue? Is there a built-in way to tile an element on the client.screen that im not aware of other than adding them in to position manually? And is there a way to avoid this screen offset?
Dec 8 2018, 9:18 am