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

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

baenyth
Koopa
Koopa
Posts: 16
Joined: Mon Sep 07, 2020 6:34 pm
Pronouns: she/her

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

Postby baenyth » Sun Sep 04, 2022 2:41 am

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?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Sun Sep 04, 2022 3:16 am


baenyth
Koopa
Koopa
Posts: 16
Joined: Mon Sep 07, 2020 6:34 pm
Pronouns: she/her

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

Postby baenyth » Wed Sep 14, 2022 5:26 am

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

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

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

Postby Emral » Wed Sep 14, 2022 7:02 am

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.

AirShip
Fuzzy
Fuzzy
Posts: 1086
Joined: Wed Jan 01, 2014 1:30 am
Flair: The Flying Ghost
Contact:

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

Postby AirShip » Wed Sep 14, 2022 10:50 am

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


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari