• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Modifying Player Movement with an Event

  • 52
    Posts
    12
    Years
    • Seen Aug 19, 2015
    Modifying Player Movement with an Event (SOLVED)

    Hey, DurrCo Here. You guys have really helped me on some stuff in the past, and this one is muy simple in comparison, but I've been racking my brain for a few hours trying to figure it out and drawing blanks.
    Is there a script I can call or some other method I can use to modify the player character's movement speed in an event? Like, let's say you touch the event, you go from the normal walking speed to a little less than that until you touch another event that brings you back to normal speed.

    Any help would be IMMENSELY appreciated. I know it seems simple but I'm a simple guy XD
     
    Last edited:
    In an event, on the second page of the event commands there the option for set move route. On that, make sure the target is set as player (should be by default) and then used the change speed option second from the bottom on the second column

    If you want it when the player touches the event, make sure the events trigger is set to player touch
     
    I tried that (I'm fammiliar with RPG maker XP to some degree) but I couldnt get it to work, I figured Pokemon Essentials changed something that made that obselete.
     
    Hi, DurrCo
    I've pinpointed the code that needs to be changed if you want to slow the player. It's in Game_Character_2_,
    line 51, method update_move. After this line,

    Code:
    distance = 2 ** @move_speed

    Add this:

    Code:
    distance /= 2

    This will make the player go two times slower. If you want to be able to switch it on and off, you could use a
    game switch.

    Code:
    distance /= 2 if $game_switches[69]

    There you go, hope I helped!
     
    You definitely did, thanks man!
    I wanted it to emulate slopes a bit, so that when you were walking on something that was supposed to be uphill, you'd slow down a little, and when you were walking downhill, you'd speed up a little. I was able to use what you gave me to figure out the speed up thing too without a problem. It's a small thing, but you're still a life saver!
     
    Back
    Top