• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] How zoom the camara

  • 14
    Posts
    3
    Years
    • Seen Jun 13, 2023
    Hi everyone, I'm trying to figure out how to zoom in on the player because when I get to the left or right edge of the map, the black boxes appear and I have to make the map bigger ...

    Reading through the forum I saw that it could be changed in Setting, in SCREEN_ZOOM = 1.0, but I have tried putting 2.0 and 0.5 and starting a new game and it doesn't work ..

    I still see 6.5 tiles on the map when I get to the edge, I would like to see 4, does anyone know how to fix it? I leave a photo to clarify more

    https://ibb.co/w73dbYD
     
    If you are not connecting maps, you can set the metadata to "Snapedges = TRUE" which means, if the player get close to the border of the map, the camera will stop following them.
     
    Where is the SnapEdges? I do not get anything in the metadata.txt, in fact I don't even get the map that I created xD
     
    Open the metadata.txt in the PBS folder, and it should be like this (This is an example of an outdoor area):

    Code:
    [001]
    #Map Name
    Outdoor = true
    ShowArea = true
    SnapEdges = true
     
    Here is my metadata:
    #-------------------------------
    [001]
    # Intro
    #-------------------------------
    [002]
    # Lappet Town
    BattleBack = field
    MapPosition = 0,13,12
    Outdoor = true
    ShowArea = true
    #-------------------------------
    [003]
    # \PN's house
    MapPosition = 0,13,12
    HealingSpot = 2,8,8
    #-------------------------------
    [004]
    # Pokémon Lab
    MapPosition = 0,13,12
    ShowArea = false
    #-------------------------------
    [005]
    # Route 1
    BattleBack = field
    MapPosition = 0,13,11
    Outdoor = true
    ShowArea = true
    #-------------------------------
    [006]
    # Kurt's house
    MapPosition = 0,13,11
    #-------------------------------
    [007]
    # Cedolan City
    MapSize = 2,11
    MapPosition = 0,13,10
    Outdoor = true
    ShowArea = true
    #-------------------------------

    etc.. i don't see any SnapEdges, maybe was removed in v18..

    here the file if u wanna see:
    https://www.mediafire.com/file/l260wyy0tjcmcj4/metadata.txt/file
     
    Yes, I have looked and it got the SnapEdges, the problem is that if you activate it, they don't work because the maps are connected.
     
    Just pad your map's edges with 2-3 more rows of trees, the player won't see the black border then.
     
    Back
    Top