Forgive me if I'm being blatantly dumb but, I'm trying to make a mine cart that can only go on the tracks. I played around with some of the stuff in rpg maker. I tried stuff like changing the boat graphic to the mine cart and other stuff like that but it only can be a boat or be an airship that looks like a mine cart. I tried a certain script but it didn't work. Is making a mine cart that can go only on the mine cart track feasible or not?
boat= minecart.
RPG Maker VXAce SupportThere are a couple of things that I would try. First I would create another actor that is the character of the mine cart. When I "got in" the cart, I would do a fadeout/change the actor/fadein.
Then I would either use blank events on the outside edges of the track set to "Same as character" or use a region script and set regions on the outside of the path that were not passable.
Then I would either use blank events on the outside edges of the track set to "Same as character" or use a region script and set regions on the outside of the path that were not passable.
It's doable. Basically like mlogan said, use a region script to block off all the regions around the track. I made a mine cart, too, and was facing the same problem. I used Yanfly's Move Restrict Region script: https://yanflychannel.wordpress.com/rmvxa/field-scripts/move-restrict-region/
I then combined it with Galv's Region Effect Script to have a sound effect when the mine cart was on the tracks moving.
I then combined it with Galv's Region Effect Script to have a sound effect when the mine cart was on the tracks moving.
[IMG]https://imagizer.imageshack.us/v2/859x694q90/20/9ifi.png[/IMG][IMG]http://imagizer.imageshack.us/a/img19/6478/qzi.gif[/IMG]
Yes, move route would work if you are traveling a very specific path. It would depend on how much control you want the player to have.
In addition to only allowing movement along certain tiles, you'd want to be sure the player can't change direction on a single tile - if the tracks run from left to right, it would not look correct for the player to press the up/down button and have the cart turn to face up/down.
Thanks this work well, thanks.
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.
Original thread: https://forums.rpgmakerweb.com/threads/boat-minecart.25844/