Change vehicle sprite when getting on and off vehicle

DaveyHuman

Warper
Member
Joined
May 15, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
So i am looking for a way to change the vehicle sprite when boarding and getting off a vehicle.

I have a boat image as the standard boat vehicle. I also have another image of the character standing on the boat.

Using a common event i can change the boat image using

Switch: 0001 Vehicle Change
If: Boat is driven
Change vehicle Image : Boat, $! Boat With Player(0)
Control Switches: #0001 Vehicle Change = OFF

This changes the sprite to my character on the boat when riding, but i want to be able to revert back to the normal boat image when getting off the vehicle. I think this is a very roundabout way of doing it, when i'm sure there must be a simple solution out there using either a script or plugin?

Can this be done? Is there a script or anything i need to be able to achieve this?

Your help will be much appreciated :)

DaveyHuman
 

CHKNRAVE

Surprisingly not sponsored by Yanfly.
Veteran
Joined
May 11, 2020
Messages
132
Reaction score
73
First Language
French
Primarily Uses
RMMV
Here's a solution in 1 common event in parallel process, just turn on the switch when you're in a map where using the boat is possible so that otherwise it doesn't strain your CPU:

If: Boat is driven
| Change vehicle image
else
| Change vehicle image
end
Wait 15 frames

You can also set up this event as a regular one, in parallel process in every map where using the boat is possible.
 

DaveyHuman

Warper
Member
Joined
May 15, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
That’s absolutely perfect, I knew there would be a much more simple way of doing it, I just couldn’t figure it out for the life of me!
I’ll give that a shot, much appreciated!!
 

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

Latest Threads

Latest Posts

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,078
Members
137,580
Latest member
Snavi
Top