[Solved] where can I change movement speed values?

Prizmik

ликвидатор
Veteran
Joined
Apr 23, 2015
Messages
60
Reaction score
22
First Language
Lithuanian
Primarily Uses
Hello,


Where in the script editor, can I change, what the program interprets to be different speed settings?


Basically I need to tune the base value of speeds like: "fast", "faster", etc. when it is set to a moving event or player, so I can adjust movement speeds.


Thank you.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It would be a method in one of the Game_Character scripts, I suspect.


sorry I can't actually look myself - I'm at work and don't have my laptop with me.
 
Last edited by a moderator:

Prizmik

ликвидатор
Veteran
Joined
Apr 23, 2015
Messages
60
Reaction score
22
First Language
Lithuanian
Primarily Uses
Hello Shaz, thank you for the response,

I found "@move_speed = 4", in game_character 1, but changing the value to anything else didn't seem to have any effect. Used the search command to find anything else, that has "move" or "speed" in it, did not seem to come up with anything I could change to see if it works.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I wondered about this ... there's a default move speed for characters, and as each page can have a custom move speed, the setting is on the RPG::Event::page class.

Add this to a new slot above main:

module RPG class Event class Page alias shaz_initialize initialize def initialize shaz_initialize @move_speed = 4 @move_frequency = 4 end end endendYou can remove the @move_frequency setting or adjust it as needed - just experiment a bit.Actually I'm not even sure if that'll do it. Try it, and if it doesn't work, just remove that whole thing.

I think what you MAY need to tinker with is Game_Event.refresh, where it sets @move_speed from the event page itself. It will have values from 1 to 6, which you could adjust using conditional tests, case statements, or if you just want to substitute entirely, use an array with the new move speeds and the page setting as an index.

What exactly are you trying to do?
 
Last edited by a moderator:

Prizmik

ликвидатор
Veteran
Joined
Apr 23, 2015
Messages
60
Reaction score
22
First Language
Lithuanian
Primarily Uses
Thank you Shaz! Did what you said, but sadly, that did not seem to have effect.


Well what I am trying to do is, to make the game think that the "slow" speed setting actually means slower and that the "slower" speed setting would be interpreted as a speed between slower and slowest.


This is because I need three separate speed settings for my events that are slower than the "slow" setting. This is because all my events shift in speed, between 3 distinct stages ("the slow setting being too fast for the are I have").


I guess this might not be doable. So I think I might just use "move frequency" to compensate for the samey speeds of the stages.
 

Lightness

Veteran
Veteran
Joined
May 11, 2012
Messages
37
Reaction score
4
First Language
English
Primarily Uses
You can customize the movement speed values using the script function in the "Set Move Route" event command. In the script line, enter "@move_speed = X" with X being the custom move speed you want.

From what I've read though, movement speeds are set using logarithmic values, meaning that a .5 or 1.5 movement speed might not be ideal since it would cause some tearing of the image when scrolling the map. There is a post here that would explain better - see Heretic86's response in this thread for more details:

http://forums.rpgmakerweb.com/index.php?/topic/36311-35-movement-speed/
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
alright ... try this.


Get rid of the script above, then go to Game_Event and find the refresh method. Find this line:

@move_speed = @page.move_speedChange it to this:
Code:
@move_speed = [0,1,2,3,4,5,6][@page.move_speed]
The default move speed on a page is 3 - not sure whether that's "slow" or "normal". If you're happy with that setting, leave it as it is, and just change the 1 and 2 to lower values. If the 3 is still too fast, change 3 to something lower as well.
So you might end up with something like this:

@move_speed = [0,0.5,1,1.5,4,5,6][@page.move_speed]
I'm not sure this will work - I THINK I've seen people use fractional values for movement speed before and it hasn't messed things up. But not guaranteeing it :)
 

Lightness

Veteran
Veteran
Joined
May 11, 2012
Messages
37
Reaction score
4
First Language
English
Primarily Uses
One thing worth noting that I didn't think of before - if these are just for events like you had mentioned and not for the actual player, then you can set their movement speeds using the script command as you please, since moving events on the map won't cause the map to scroll. This only becomes an issue when you set custom move speeds for the player graphic, since the map will scroll with the player's movement. As long as the camera isn't following the event, you won't have any tearing of the image.

EDIT: On a related note, I was just playing around with it a bit and it seems you can't enter ".5" as a movement speed. You must enter the "0" first, so it would have to be entered as "0.5" in order to work.
 
Last edited by a moderator:

Prizmik

ликвидатор
Veteran
Joined
Apr 23, 2015
Messages
60
Reaction score
22
First Language
Lithuanian
Primarily Uses
@Shaz


Thank you so much! You always know what I need! It worked exactly like intended for events! But didn't effect the player.


@Lightness


Thank you, that command made the players speed work properly with the events. Like you said, the screen tears a little, but I think it is not too bad.


You both helped out a lot, so I don't know which post to mark as the one that solved it, I guess I will just mark Shaz, since she was the first to help. Also, this can be closed now, as it is solved.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
just mark whichever one you end up using ;)
 

Prizmik

ликвидатор
Veteran
Joined
Apr 23, 2015
Messages
60
Reaction score
22
First Language
Lithuanian
Primarily Uses
just mark whichever one you end up using ;)
I use both, since one covers events and the other covers the player :) .
 

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

Latest Threads

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,081
Members
137,582
Latest member
Spartacraft
Top