Map ID transfer problem

● ARCHIVED · READ-ONLY
Started by BrokemScreamBox 10 posts View original ↗
  1. In an RPG game, I want for the map to change while the player maintains their position. For example, if the player is on the left tile before transfer, they will be on the left after. I learned that using variables can do this, but the Map ID is my biggest obstacle. I can't give it a value for the map I want it to go to. How do I specify the map to transfer to?

    Event to activate

    Spoiler
    Problematic event

    Spoiler
    Event of map I want to go to

    Spoiler
  2. Photobucket images dead?
  3. Whoops. I need to fix these.
  4. Transfer Player has two modes. You can allocate the map, X and Y directly, or you can use variables to all of them.


    If you can use variables for the X and Y position, then you can use variables for the map id (in fact you HAVE to).


    As Hotfirelegend says, your images are not viewable, so that's about the only help I can provide without seeing your screens.
  5. I fixed the images now. Please let me know what I had done wrong.
  6. What exactly is it doing? I'm quite confused on what your trying to do.
  7. Bloodmorphed said:
    What exactly is it doing? I'm quite confused on what your trying to do.
    I'm trying to be able to transfer from one map to another using one event to cover multiple tiles. The player's new position would vary depending on the previous. For example, if the player was on the left side of the screen before transfer, they will be on the left side after. This would be done with transferring with variables, but I cannot seem to set a value for Map ID. Map ID seems to have no value.
  8. 1. You do not need two event pages. Put the transfer command on the first page, where you turn on the switch, and get rid of the second page.


    2. Add a WAIT X Frames at the top or bottom of page 1. You do not need to check the player's location 60 times per second. Make it wait 5 or even 10 frames.


    3. You need to SET the variable for the map id before you use it. You set the variable for the player's X and Y positions, but you don't set the one for the map id. This needs to be the id of the map you want to transfer to, which you will probably have to do via Control Variables and just set it to a number, since you won't want to send the player to the same position on the same map, and you haven't given us any info to tell if you can do a calculation to determine the new map number.
  9. Shaz said:
    1. You do not need two event pages. Put the transfer command on the first page, where you turn on the switch, and get rid of the second page.

    2. Add a WAIT X Frames at the top or bottom of page 1. You do not need to check the player's location 60 times per second. Make it wait 5 or even 10 frames.

    3. You need to SET the variable for the map id before you use it. You set the variable for the player's X and Y positions, but you don't set the one for the map id. This needs to be the id of the map you want to transfer to, which you will probably have to do via Control Variables and just set it to a number, since you won't want to send the player to the same position on the same map, and you haven't given us any info to tell if you can do a calculation to determine the new map number.
    Unfortunately, I don't know how to set a number for the map ID. The map I want to transfer to is Map 007, but I don't know how to put that into the variable.

    Edit: Nevermind! I managed to do a little fiddling with your instructions and got it to work. Thanks!
  10. Code:
    Control Variables: [0015: Map ID] = 7