Movement speed equipment

solaris1111

Veteran
Veteran
Joined
Jan 1, 2014
Messages
115
Reaction score
20
First Language
French
Primarily Uses
Hi! I'm trying to make an equipment allowing the player to move a bit faster, like the spring boots from FF6. Exemple : Default movement speed, 3, if someone in the party have X item equiped, player move at speed 4? I know i can make something with a common event on parallel, but maybe there's a better way?


Thank you!
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
Yeah, there are basically two ways to do it: Parallel Process common events or Scripting.  It sounds like you already know how to make the PP event (as a hint, I think you can use the script line $gamePlayer._moveSpeed += 1; to change it inside the Conditional Branch without having to do a bunch of different checks for the player's current Move Speed).  And if you want to go the scripting route, which is definitely a cleaner approach, make a request in the JS Script Requests section.  I don't imagine it would take a scripter very long to make this for you.
 

solaris1111

Veteran
Veteran
Joined
Jan 1, 2014
Messages
115
Reaction score
20
First Language
French
Primarily Uses
Yeah, there are basically two ways to do it: Parallel Process common events or Scripting.  It sounds like you already know how to make the PP event (as a hint, I think you can use the script line $gamePlayer._moveSpeed += 1; to change it inside the Conditional Branch without having to do a bunch of different checks for the player's current Move Speed).  And if you want to go the scripting route, which is definitely a cleaner approach, make a request in the JS Script Requests section.  I don't imagine it would take a scripter very long to make this for you.
I did


if hero1 has equipped "spring boot" 


Script :  $gamePlayer._moveSpeed = 4


else


if hero 2 ....


same with all heros and the final "else"


Script :  $gamePlayer._moveSpeed = 3


And it work flawlessly without lag. Cause, in events, when we use set move route and change speed through there, it cause a mini lag. I tried a lot of parrallel event with a lot of CB, nothing was fine enough for me. With your suggestion, i get no lag at all. It's perfect for me!! Thank you!!!  :D
 
Last edited by a moderator:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
Good, I'm glad it worked for you! :)



As one more hint, I like to add a one or two frame Wait command at the end of any PP event that's running constantly, just to make sure that as I add dozens more events, it won't lag up the game in general.  It slightly decreases the responsiveness at the moment you un/equip the item and return to the map, but it saves some processing power.  If this is one of only a few PP events you have running, you probably don't need to do this, though.
 

solaris1111

Veteran
Veteran
Joined
Jan 1, 2014
Messages
115
Reaction score
20
First Language
French
Primarily Uses
My last game, at the end, had some minor lag because of that. I will do that!
 
Last edited by a moderator:

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

Latest Threads

Latest Profile Posts

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.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top