Zelda Style Map Transitions

Discussion in 'JS Plugin Releases (RMMV)' started by Jeremy Cannady, Nov 4, 2015.

  1. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    Requested here: http://forums.rpgmak...ap-transitions/

    MapScroll v2.0
    Jeremy Cannady

    Introduction
    This script will scroll the map when you get to the edge instead of the normal auto center.
    Need people who want to use this to test this and tell me the bugs as I  can't test all scenarios.

    Features

    Scales with Yanfly Width/Height changes.

    Grid Snap: Calculates what grid you should be in when you change maps so your screen displays the right grid and is not centered.

    For example if you have grid snap disabled then when you enter a new map your camera will be centered on you instead of the grid.

    Example of grid snap:

    [​IMG]
    Plugin commands:

     Map_Scroll_Disable ---> Disables Scrolling, revert to normal game scrolling.

     Map_Scroll_Enable  ---> Enables scrolling. (default)
     Grid_Snap_Disable  ---> Disables grid auto snap.

     Grid_Snap_Enable   ---> Enables grid auto snap (default)

    Note Tags:

    <ScrollDisable> ---->If you want a special map to automatically disable scrolling then put this in. 

    This will allow you to run around like normal for a special map.

    How to Use
    Put the file in your plugins folder.

    Video:







    Script:

    http://pastebin.com/3LuUR0uf

    Anyone can use this for whatever purpose.
     
    Last edited by a moderator: Nov 6, 2015
    #1
  2. Bernkastel

    Bernkastel Veteran Veteran

    Messages:
    75
    Likes Received:
    15
    First Language:
    English
    so this is all one map right? I'll mess with it. this might... MIGHT make games more playable on smart phones as the camera moving less = less confusing.

    Edit: First issue. the boundaries don't increase with resolution so the screen shifts when you reach a small square instead of the edge of the window. you need an option in the parameters to be able to manually type what the resolution is that we type in the resolution changer
     
    Last edited by a moderator: Nov 4, 2015
    #2
  3. Kane Hart

    Kane Hart Elmlor.com Veteran

    Messages:
    656
    Likes Received:
    166
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    #3
  4. Bernkastel

    Bernkastel Veteran Veteran

    Messages:
    75
    Likes Received:
    15
    First Language:
    English
    I can't speak for Jeremy but that might be impossible with the current script. this is more of a camera control then a transfer script. this locks the camera in place and when you reach the edge of the screen, NOT the edge of the map, it pans the camera. 

    Pretty much, Jeremy's script is all on one map, not multiple maps.
     
    #4
    Kane Hart likes this.
  5. Rito

    Rito Veteran Veteran

    Messages:
    107
    Likes Received:
    50
    First Language:
    French
    Yeaaa, it's great !

    It's possible to enable/disable with a switch ?
     
    Last edited by a moderator: Nov 4, 2015
    #5
  6. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    Yeah I can update it to where it is active/unactive with just a switch. Kinda weird to make it that way but extra options are good.

    I have downloaded the map transfer script. I will tinker around and see what I can come up with.

    Edit2: I just tried it with Shaz script and they both work flawlessly, first time no edits.
     
    Last edited by a moderator: Nov 4, 2015
    #6
    Tyruswoo likes this.
  7. HeroofTime123

    HeroofTime123 Veteran Veteran

    Messages:
    42
    Likes Received:
    3
    First Language:
    English
    Alright, I'm sure I'm going to sound really dumb, but do I need to do anything other than add the script to my game through the plugin manager? I mean, do I need to activate it with an event or something? It's not working for me.
     
    #7
  8. Bernkastel

    Bernkastel Veteran Veteran

    Messages:
    75
    Likes Received:
    15
    First Language:
    English
    while using YEP_CoreEngine to change the resolution the screen doesn't pan in the right locations anymore. it still pans based on the small area of the original resolution
     
    #8
  9. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    I have updated it, it should change now based on what screen width/height you use in the yanfly core.
     
    #9
    ShinGamix and Tyruswoo like this.
  10. Rito

    Rito Veteran Veteran

    Messages:
    107
    Likes Received:
    50
    First Language:
    French
    Thank you !!!
     
    #10
  11. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    Updated to have a auto grid snap function.

    When you enter a new map the screen will center the camera on you. 

    With grid snap it will center the camera on the correct grid.
     
    #11
    Tyruswoo, Fox536 and Pia Carrot like this.
  12. Pia Carrot

    Pia Carrot Veteran Veteran

    Messages:
    31
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMXP
    So this is pretty much the solution to the event problem, which is great! Kudos to you, sir, your dedication to the community is really appreciated.
     
    #12
    ShinGamix and Jeremy Cannady like this.
  13. originalduffman

    originalduffman Villager Member

    Messages:
    24
    Likes Received:
    8
    First Language:
    English
    I can't wait to try this out. I don't think I realized how awkward the standard map transfers were until now. Thank you!
     
    #13
  14. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    I just like to be able to see one area at a time instead of it constantly changing. Works better for my puzzle related game and is easier on my eyes.
     
    #14
    VitaliaDi, Tyruswoo and Tiduril like this.
  15. Fox536

    Fox536 Veteran Veteran

    Messages:
    173
    Likes Received:
    60
    Hey Jeremy Cannady when you have Scroll Disabled for a map with gridsnap on it shows alot of black space if the map isn't the correct dimensions. You might change line 77 to

    if(Game_Player.prototype.gridSnap === false || $dataMap.meta.ScrollDisable === true){It seems to fix the issue
     
    #15
    Jeremy Cannady likes this.
  16. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    Thanks for finding a bug.
     
    #16
  17. Fox536

    Fox536 Veteran Veteran

    Messages:
    173
    Likes Received:
    60
    No problem :)
     
    #17
  18. KadoDragon

    KadoDragon Veteran Veteran

    Messages:
    155
    Likes Received:
    9
    First Language:
    English
    Let me make sure I have something straight. If I turn off grid snapping, does camera move with you between the maps like in Pokemon?

    EDIT: Oh. Nevermind. I thought this stitched maps together. It's still only one map. Kinda dumb really. But okay.
     
    Last edited by a moderator: Dec 15, 2015
    #18
  19. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    261
    Location:
    Texas
    First Language:
    English
    There are a few scripts that can stitch the maps together so no need to redo something. This script just stops the camera from moving until you are the edge of the screen. You can combine this with a map stitching script to make a zelda type world. After that someone just needs to come up with a real time battle system.
     
    #19
    Tyruswoo likes this.
  20. KadoDragon

    KadoDragon Veteran Veteran

    Messages:
    155
    Likes Received:
    9
    First Language:
    English
    I realize that my post came out a little rude. Just makes little sense to make map transfers on one map to me. What's the point?
     
    #20

Share This Page