Script Call to Change Speed?

Status
Not open for further replies.

ACE RyanAnayaMc

New to Game Making
Veteran
Joined
Jul 8, 2013
Messages
48
Reaction score
1
First Language
English
Primarily Uses
I would like to know the script call that will allow you to change an actor's speed from the "Script..." function of "Set Move Route". Also, would it allow decimals? And for reference, would 4 be normal, and 6 be x4 Faster?

Also, this would be for RPG Maker VX Ace [RGSS3].
 
Last edited by a moderator:

optimum45

Veteran
Veteran
Joined
Mar 31, 2015
Messages
537
Reaction score
65
First Language
English
Primarily Uses
I don't know about the decimals, but this is what I do.

Create a Common Event, call it whatever you want.  In this case, I'll call it "Map Speed".

Set the move route to the speed desired and set to player.

On every map, have an Autorun event that looks like this

Call Common Event: [Map Speed]

Erase Event

This will set your player movement to that speed upon loading into the new map.

However, there may be better ways of doing this that I'm not aware of.  A better mind might have a better answer.   :rock-left:
 

ACE RyanAnayaMc

New to Game Making
Veteran
Joined
Jul 8, 2013
Messages
48
Reaction score
1
First Language
English
Primarily Uses
This is not exactly what I needed. I needed a script call so I can manually input a number (hopefully a decimal) so I can have more precise control over what the speed is. Just for more information, I am using this to have certain tiles slow down the player by a small amount.
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
$game_player.move_speed = 7.5Decimals work :) you may need to add this to the script list:

Code:
class Game_Player < Game_Character  attr_writer :move_speedend
 
Last edited by a moderator:

ACE RyanAnayaMc

New to Game Making
Veteran
Joined
Jul 8, 2013
Messages
48
Reaction score
1
First Language
English
Primarily Uses
Thank you for this! This solved my issue.
 

ACE RyanAnayaMc

New to Game Making
Veteran
Joined
Jul 8, 2013
Messages
48
Reaction score
1
First Language
English
Primarily Uses
Also, one last question. Is 7.5 the default movement speed? If not, then what is it?
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,545
Reaction score
3,715
First Language
Java's Crypt
Primarily Uses
RMMZ
Also, one last question. Is 7.5 the default movement speed? If not, then what is it?
The default is 4.
When dashing, it increases the speed by 1.
 

Sharm

Pixel Tile Artist
Veteran
Joined
Nov 15, 2012
Messages
12,760
Reaction score
10,884
First Language
English
Primarily Uses
N/A
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,586
Latest member
Usagiis
Top