How can I transfer player within the same without reloading it?

masterlobo

Veteran
Veteran
Joined
Mar 14, 2012
Messages
194
Reaction score
155
First Language
English
Primarily Uses
RMMV
Hello,

I need to move the player from location within the map. Moving is too slow, even at max speed.

Transfer player with fade none works wonders, however it reloads everything on the map and therefore it looks clunky.

In other words, what I need, is Set Event Location but for the player.

Can such a thing be done?
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,616
Reaction score
1,978
First Language
English
Primarily Uses
RMMV
$gamePlayer.locate(newx, newy);
 

mogwai

1984
Veteran
Joined
Jun 10, 2014
Messages
875
Reaction score
594
First Language
English
Primarily Uses
RMMV

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,616
Reaction score
1,978
First Language
English
Primarily Uses
RMMV
It read to me like he was fine with the transition but just didn't want all the events on the map to reset. That is a cool effect, though.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,814
Reaction score
14,021
First Language
English
Primarily Uses
RMMV
I thought reloading the map only happened if you went to a new map. That's the way it worked in every previous version of the engine, and MV is pretty must just Ace in another language as far as the scripts go.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,616
Reaction score
1,978
First Language
English
Primarily Uses
RMMV
That's what I thought too Shaz, but I assumed I was mistaken when he said the events reloaded when he did a transition on the same map. Guess I should have tested it first.

Edit: Can confirm events don't reload if you're teleporting on the same map.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
40,814
Reaction score
14,021
First Language
English
Primarily Uses
RMMV
Nice. Saves me having to look it up :)

So then, @masterlobo - what do you mean by "it reloads everything on the map and therefore it looks clunky"? Because it doesn't reload anything. Unless you've got a plugin that causes it.
 

masterlobo

Veteran
Veteran
Joined
Mar 14, 2012
Messages
194
Reaction score
155
First Language
English
Primarily Uses
RMMV
Nice. Saves me having to look it up :)

So then, @masterlobo - what do you mean by "it reloads everything on the map and therefore it looks clunky"? Because it doesn't reload anything. Unless you've got a plugin that causes it.

Sorry, finally had time to reply.

So, I did verify that events do not reload, the clunkiness is because the parallax (if set to move) resets its movement. When the parallax restarts its movement, it looks clunky and as if the map reloaded.

Is there a way around that?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,616
Reaction score
1,978
First Language
English
Primarily Uses
RMMV
The problem is that Game_Map's parallaxX is set to the value of _displayX as part of setting the display position, which will happen if you teleport. You could add a "preserve parallax" flag that gets turned on/off when you need to keep it in the same position, then have an if statement that only sets it if the flag is off.
 
Last edited:

Latest Threads

Latest Profile Posts

Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.
I've started up Pillars of Eternity. It's interesting how the game does a "select choice" cutscene using still image art for dramatic flair. I wonder if that might work for my RPGMaker project.
The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.
Gamedev for relaxing? yes or no?

Forum statistics

Threads
107,741
Messages
1,031,774
Members
139,879
Latest member
vitabalance
Top