Changing max speed over 6 for an event

Discussion in 'RPG Maker MV' started by LeeAceSan, Jun 5, 2018.

  1. LeeAceSan

    LeeAceSan Veteran Veteran

    Messages:
    52
    Likes Received:
    30
    First Language:
    French
    Primarily Uses:
    RMMV
    Hi everyone :cutesmile:

    I just want to know please, if it's possible to change the maximum speed over 6 for an event ?

    With a script call, it will be cool :thumbsup-right:

    Thank's ;_;
     
    #1
  2. Wavelength

    Wavelength Pre-Merge Boot Moderator

    Messages:
    4,223
    Likes Received:
    3,553
    Location:
    Florida, USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    It's definitely possible (I did it in Ace, occasionally setting it above 6, and it even accepted decimal values like 4.5). To do this from a regular script call, you might need to set up an accessor method first, and you'll definitely need a reference to the object you want to set the speed for. I don't know the MV syntax for this offhand.
     
    #2
  3. LeeAceSan

    LeeAceSan Veteran Veteran

    Messages:
    52
    Likes Received:
    30
    First Language:
    French
    Primarily Uses:
    RMMV
    Thanks for the information :cutesmile:

    Maybe someone know, how to do this ?
     
    #3
  4. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,116
    Likes Received:
    690
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    One way is to add this to the event's move route (either its automatic move route or via a Set Move Route command) as a script:
    Code:
    this.setMoveSpeed(7.5);
    This will set the event's movement speed to 7.5, just change the number to whatever you like.

    Alternatively, without move routes, this might work in a Script command; just replace 500 with the ID of the event:
    Code:
    $gameMap.event(500).setMoveSpeed(7.5);
     
    #4
    LeeAceSan and fizzly like this.
  5. LeeAceSan

    LeeAceSan Veteran Veteran

    Messages:
    52
    Likes Received:
    30
    First Language:
    French
    Primarily Uses:
    RMMV
    Oh my gosh, it's work perfectly ! Thank you so much :D:rock-right:
     
    #5
  6. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,116
    Likes Received:
    690
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    Happy to help! ^_^
     
    #6
    LeeAceSan likes this.

Share This Page