Map ID transfer problem

BrokemScreamBox

Villager
Member
Joined
Aug 10, 2014
Messages
14
Reaction score
0
First Language
English
Primarily Uses
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

Problematic event

Event of map I want to go to

 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

BrokemScreamBox

Villager
Member
Joined
Aug 10, 2014
Messages
14
Reaction score
0
First Language
English
Primarily Uses
I fixed the images now. Please let me know what I had done wrong.
 

Bloodmorphed

Dungeon Fanatic
Veteran
Joined
Sep 17, 2012
Messages
1,466
Reaction score
144
First Language
English
Primarily Uses
What exactly is it doing? I'm quite confused on what your trying to do.
 

BrokemScreamBox

Villager
Member
Joined
Aug 10, 2014
Messages
14
Reaction score
0
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

BrokemScreamBox

Villager
Member
Joined
Aug 10, 2014
Messages
14
Reaction score
0
First Language
English
Primarily Uses
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!
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Code:
Control Variables: [0015: Map ID] = 7
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,030
Members
137,566
Latest member
Fl0shVS
Top