Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved]View World Map

I'm sure this is an easy thing to do, but i just don't know how to do it. All i want, is an option, that let's you view the world map and your current location on RMXP. I already have the picture of the map. I havn't found a good script that let's you do this either. I know that i could make a common event, and put it on an item called world map, but i also know that i have to assign things variables, and i'm just not sure how to do that.

If someone could help me figure this out, or reccommend me a good script for this, that would be great.

-Thanks
 
Well, for a first bit, which RPG Maker are you using? With no scripts, I don't know how you'd get a position marker, but to view the world map you'd make an event that's parallel process, at the start there's a conditional branch that checks if you have the map item, then one that checks if you're pressing the "view map" button*, then displays the map and waits for the press of the button...

* You could make it where, when the item is used, it'll turn on a switch that'll trigger the map-show, but make sure you turn it off at the end of the event!

For RM2003: There is no "check if pressing a certain button" branch, so you'd use the "enter password"/"press certain button to give a value to a variable" command. This could take a bit to figure out, as the buttons do not correspond to the keyboard letters, but functions mapped to different keys... meaning, they say "L" but on a keyboard it's "Q". You'd probably use L/R, as they serve no function in the overworld. Check what value that key gives, then do a conditional branch on your map parallel process event to check if your variable (the one given solely to the map event) is the same as "L"'s value, then reset it once you're done.

For XP: There is no "wait until spacebar/enter/x is pressed" command, so you must use the conditional branch-end event-stuff...
Do you need more specification?
 
Oh, sorry. I'm using XP. What I mean though, is to view the wrld map with an item, which i know how to do that part. The part that i don't know how to do, which i want though is for the map to show like an arrow or icon of some sort that shows you specifically where you are. I'd like it so you can also view other places on the map that you are currently not visiting.
 
For a specific location, you'll need a bit more work. You can assign a variable to the map ID, then use a bunch of Conditional Branches checking the variable and assigning a corresponding coordinate to the icon (using Show Picture). Or, you can change the value of a variable each time the player enters a new area on the world map, and again check with Conditional Branches.

It would turn out something like this:
Code:
@>Show Picture: World Map
@>Control Variables: [Map ID] = Map ID
@>Conditional Branch: Variable [Map ID] == 1
  @>Show Picture: [Icon] (X1, Y1)
@>Conditional Branch: Variable [Map ID] == 2
  @>Show Picture: [Icon] (X2, Y2)

You would keep adding Conditional Branches and modify the X and Y coordinates to the location on the world map.
Hope this helped.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top