Page 1 of 1

Is there a way to control a World Map's viewing boundaries?

Posted: Sun Sep 04, 2022 2:41 am
by baenyth
It's my first time making a world map, and when I test it out, it keeps on giving me black void sections. Is there a way to create camera boundaries such that said black space won't be seen?

Re: Is there a way to control a World Map's viewing boundaries?

Posted: Sun Sep 04, 2022 3:16 am
by Emral

Re: Is there a way to control a World Map's viewing boundaries?

Posted: Wed Sep 14, 2022 5:26 am
by baenyth
Thank you, but when I used this, the map seems to snap in and out of said boundaries when I reach a certain Y-threshold.
Here's the function I used:

Code: Select all

camlock.addZone(160, 96, 1504, 600, 1)
And here's some images of what's happening:


Image


Image

Re: Is there a way to control a World Map's viewing boundaries?

Posted: Wed Sep 14, 2022 7:02 am
by Emral
Huh, that's strange.
I can't quite pin down what's causing it just from the images. If you can PM me your world map and script, I can take a closer look. Maybe there's a bug in camlock.

Re: Is there a way to control a World Map's viewing boundaries?

Posted: Wed Sep 14, 2022 10:50 am
by AirShip
I think a better solution is to simply use xmap.lua, in addition to creating borders as you wish, it offers a huge amount of upgrades to the vanilla world map.

viewtopic.php?f=101&t=27965