Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

How to trigger an event after get in vehicle?

Status
Not open for further replies.

Dad3353

Praised Adventurer
After getting into a vehicle, the vehicle becomes the Actor, but with a different (vehicle...) sprite. Anything the Actor can trigger, then, will be triggered by this new 'vehicle' Actor.
Is that the answer you were looking for..?
 

Boy Who Codes

Praised Adventurer
Xy$
0.00
You can slot a common event that checks if the actor is in a vehicle. Make sure it's a parallel process and triggered with a switch.
 

ben99

Villager
Xy$
0.00
You can slot a common event that checks if the actor is in a vehicle. Make sure it's a parallel process and triggered with a switch.
Thx! This is what I want, my idea is to trigger an event after the player get into vehicle. so how to check if the actor is in the vehicle?
 

Boy Who Codes

Praised Adventurer
Xy$
0.00
Make a conditional branch, set to tab 4 and select script. Write: $gamePlayer.isInVehicle() if you want for all vehicles.

For boat: $gamePlayer.isInBoat()
For ship: $gamePlayer.isInShip()
For airship: $gamePlayer.isInAirship()
 

ben99

Villager
Xy$
0.00
Make a conditional branch, set to tab 4 and select script. Write: $gamePlayer.isInVehicle() if you want for all vehicles.

For boat: $gamePlayer.isInBoat()
For ship: $gamePlayer.isInShip()
For airship: $gamePlayer.isInAirship()
Thanks!!
[doublepost=1474654859,1474654824][/doublepost]
After getting into a vehicle, the vehicle becomes the Actor, but with a different (vehicle...) sprite. Anything the Actor can trigger, then, will be triggered by this new 'vehicle' Actor.
Is that the answer you were looking for..?
not really, but still thanks for your reply
 

MinisterJay

Administrator
Staff member
Administrator
Since this question has been solved, I am closing the thread. If the thread creator desires to re-open it, it will be re-opened.
 
Status
Not open for further replies.
Top