how to make a vehicle?

sasha2cool
22 Nov 2018, 20:16

ok so im making this game where you play as a farmer named Diana Cospre,
in the beginning of the story its storming and iits about somewhere near 3am which means its still night and shes in bed,
she hears a sound coming from her barn which is next to her house...
the sounds a baby someone as layed theyre child in the barn and left a letter...

ahem sorry.... anyway since shes a farmer i wanted to make a like truck so she can get around and also sell her produce at a market....
but the problem is...
when i make the truck and i make a verb where she can get in its like the trucks a room and she cant control anything from the object, like if i make commands to go a direction theres no script to make it go that direction.....

EDIT:
ok i figured out how to make it move... i made it to where the player is the truck, not what ihad in mind but it works....
now my problem is how can i get the player from the truck in the room its in? (the player is in the truck still but invisible) i mean when the default player object is back in control


Dcoder
23 Nov 2018, 06:57

So you made the truck the player object (interesting). When that happens, move the player to a "dummy" room. Then when you want to reverse the process and make the player the player object again, move the player to truck.parent.