Set Vehcile location not working

Status
Not open for further replies.

Anakin5417

Villager
Member
Joined
Jan 3, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Other
I’m new to RPG making but I learn quick and know how to make a game but I have this problem and I can’t find a solution that works anywhere so I thought I’d just ask. When I use an event to set a location for my boat to go it won’t go there it just stays where it is can someone please help.
 

Attachments

Last edited:

Jules98

Veteran
Veteran
Joined
Jul 10, 2017
Messages
308
Reaction score
163
First Language
Dutch
Primarily Uses
RMMV
We can't help you with so little information. Please provide a screenshot of the event that is supposed to set the location of a vehicle. Make sure to include the ENTIRE event page, including conditions. If the event has multiple pages, include the conditions of those pages as well.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
That event doesn't set the vehicle location anywhere. Post the event that sets the vehicle location please.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
Are you sure those events are even being run?

Why don't you just put the Set Vehicle Location commands into the first event? Making the first event turn on a switch that activates the second event, which just does the Set Vehicle Location and turns the switch back off again, is a roundabout way to do things, and inviting problems.

However, I don't think those commands are even being run. It looks like you have an event that you step onto, then you can turn right or left and you want the boat to appear in front of the player. Player Touch triggers the event the moment the player touches it. At that time, the player is probably not facing right OR left. And it's not going to loop.

Maybe that's it ... maybe your Player Touch event should look something like this:

Code:
Loop
  If Player is facing Left
    Set Vehicle Location (to left)
    Break Loop
  Else
    If Player is facing Right
      Set Vehicle Location (to right)
      Break Loop
    End
  End
Repeat Above
 

Anakin5417

Villager
Member
Joined
Jan 3, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Other
Are you sure those events are even being run?

Why don't you just put the Set Vehicle Location commands into the first event? Making the first event turn on a switch that activates the second event, which just does the Set Vehicle Location and turns the switch back off again, is a roundabout way to do things, and inviting problems.

However, I don't think those commands are even being run. It looks like you have an event that you step onto, then you can turn right or left and you want the boat to appear in front of the player. Player Touch triggers the event the moment the player touches it. At that time, the player is probably not facing right OR left. And it's not going to loop.

Maybe that's it ... maybe your Player Touch event should look something like this:

Code:
Loop
  If Player is facing Left
    Set Vehicle Location (to left)
    Break Loop
  Else
    If Player is facing Right
      Set Vehicle Location (to right)
      Break Loop
    End
  End
Repeat Above
Just tried that and it didn't work
 

Anakin5417

Villager
Member
Joined
Jan 3, 2019
Messages
5
Reaction score
0
First Language
English
Primarily Uses
Other
Never Mind i fixed it the issue was that you could walk through it so I set the priority to below player
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,228
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,242
Members
137,609
Latest member
shododdydoddy
Top