Super speed/teleport player on map?

Fireheart

Villager
Member
Joined
Aug 9, 2015
Messages
13
Reaction score
0
First Language
English
Primarily Uses
I want to give my player a "flash step" type move. If they press shift while facing the right, they will move 5 steps forward (if there are no objects in the way, of course), but the thing is, the player is so fast, it looks more like they teleported rather than ran 5 steps. I've been messing around with the Transfer Player event, but I've got nothing... Mind you, I want it to be an ability that's useable for most of the game, not only specific points so the regular transfer player, etc, won't work. TIA.
 

kiddeath95

Lead Trainie
Veteran
Joined
Mar 12, 2014
Messages
104
Reaction score
14
First Language
English
Primarily Uses
Have a Common Event that is parallel, do conditional branch to check if the user pressed the D and VK_LSHIFT or VK_RSHIFT (Virtual-Key Codes, and you'd have to go to the script part in the conditional branch) and then just do a set move route on the player, increase their speed to the fastest one and just move them over 5 spaces.

This was just at the top of my head, and not sure if you know ruby coding or not.
 
Last edited by a moderator:

GameDevon

Animagical Person
Member
Joined
Dec 12, 2015
Messages
16
Reaction score
20
First Language
English
Primarily Uses
Just off the top of my head:

  1. Play a teleport/smoke anim at the player location
  2. Using set movement route, crank the speed up to max, turn off transparency and move forward five steps. Turn transparency back on and set speed to normal.
  3. Play an arrival anim of sorts at the destination
Probably not as much flexibility as one might want, but passable for the little time it takes to set up i think
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,804
Reaction score
12,223
First Language
English
Primarily Uses
RMMV
Transfer IS teleport. So if you're using the transfer player command, that's exactly what it'll look like.


If you want them to move quickly, you could do a Set Move Route to increase the speed to 6, take 5 steps forward, and set the speed back to 4. You might need to experiment to ensure if something is in the way, it doesn't stall the game - maybe set Wait for Completion on, check the 'ignore if can't move' option, and change the speed back to 4 as the next command rather than part of the move route.
 

Fireheart

Villager
Member
Joined
Aug 9, 2015
Messages
13
Reaction score
0
First Language
English
Primarily Uses
So how do I set the Transfer Player up so that, for example, if the player is facing right, they move five spaces (across X), if they're facing up they move 5 spaces (across Y)?
 

kiddeath95

Lead Trainie
Veteran
Joined
Mar 12, 2014
Messages
104
Reaction score
14
First Language
English
Primarily Uses
Conditional branches, checking for each 4 directions. And then move that direction x amount of spaces.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Considering a side project of making a Choose Your Own Adventure in MV but letting people play it as YouTube videos with the choices at the end leading to other videos. Thoughts?
I've made a rudimentary prototype map for the first game with the MV RTP overworld tiling. I'm probably going to photoshop the crap out of it for parallax, but the prototype has given me new ideas about how I want to place dungeons in the game.
I got tired of not having an avatar image. Couldn't think of anything cool. So I'm just using my game's antagonist instead... How original. At least both of our names start with C?
Expectation: Design/dev a game for the game jam | Reality: "These codes suck, why did I do it this way? lemme fix this. Also what if I add feature xyz because... well, I can."
Did my first script call in an event! :kaopride: It's completely useless and just because I thought it'd be cute if looking at clocks in-game made the character say the real-world time, but it's fully functional scripting and I did it all by myself!

Forum statistics

Threads
95,635
Messages
930,600
Members
125,950
Latest member
Tocilux
Top