Instead of clicking 'move right' 13 times, for each event, is there a script I can use to move a character or event to the right 13 times? Ahh, I'm sorry for explaining poorly, I'll use pictures because they help me better.
A way to use a script to help with repeated route movements?
RPG Maker MZ Supporti suppose you can do a simple for loop like this (replace "id" with the actual event id):
there might be a better way lol, but that's something to work with for now!
There is also this spreadsheet of a bunch of command in RMMV and RMMZ. Hopefully this can help ^^!
for (let i = 0; i <14; i++) {
$gameMap.event(id).moveStraight(6); //6 means move right
}there might be a better way lol, but that's something to work with for now!
There is also this spreadsheet of a bunch of command in RMMV and RMMZ. Hopefully this can help ^^!
The above won't work, as only the last one applied will be saved. If you want to make an event move multiple times, you have to create a move route.
Thank you both for your help. I'll wait a bit more to see if anyone has any other help. I was hoping there was an easier way instead of having to click move right 13 times. Someone helped me before by showing me how I could have lots of events activate through easy scripting. And I'm hoping the same can be said about this with just the right script. I'll show you why I need this!
I need to add a lot more stuff, so I was hoping for a quicker way of doing so by cutting the move route work down. (✿◡‿◡)
I need to add a lot more stuff, so I was hoping for a quicker way of doing so by cutting the move route work down. (✿◡‿◡)
You don't need a route move command for that. Instead
Parallax background, set to scroll left to right more slowly than the player.
2nd parallax of the 'road' set to scroll left to right more quickly than the first one. Just have the road surface and a few trees here and there.
Set the sprites to face left with both the walking animation and stepping animation boxes ticked.
Now they will walk endlessly.
Parallax background, set to scroll left to right more slowly than the player.
2nd parallax of the 'road' set to scroll left to right more quickly than the first one. Just have the road surface and a few trees here and there.
Set the sprites to face left with both the walking animation and stepping animation boxes ticked.
Now they will walk endlessly.
Yanfly had a plugin for that for MV (lets you use a plugin command to move to a specific place, automatically going around obstacles), i think it went into visustella events and movement core for MZ
VisuStella Events and Movement Core adds a lot of custom move route commands. With it installed, you could put this in a script command in a movement route to achieve what you're asking:
Code:
Move Right: 13
Oh no! I forgot to mention! This game is a no plugin or parallax editing allowed game! I'm doing this project with my best friend (she's doing her own project the same way). We are only allowed to use what the game comes with no add-ons. I do know that there are some great plugins that could be used to make this process easier. Thank you guys so much for all of your support in the end I just did the painstaking work of 20+ move right commands, haha. Here is the final product. ♥
Ok with that constraint, i tested and found a way with a loop like BTJanuary suggested, just not using a script...
I had placed my event left on the map, so i had to move it right... Maybe you can use it somewhere else
I had placed my event left on the map, so i had to move it right... Maybe you can use it somewhere else
Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-use-a-script-to-help-with-repeated-route-movements.156283/