001 Action / RPG Maker


TUTORIALS

 

Car Door Open and Close

by Mr.Numbers (PM)

See everything made by this user or team.

Rating

Very Helpful of 7 vote(s).

Hello car fanatics! :D

This script and vehicle allows you to give your game an even better touch of greatness! :D


What this allows you to do, is make it so when a car is parked, with no one inside, the door is open. the moment you enter the car, it closes.

Then once you leave the car, it opens again :)

 

STEP BY STEP GUIDE:
1) Go to your map, make the car where you want to be, call it "0", make sure its the car with the door opened.
2) Create another car with its door closed, call it "1", make it initially not existent using the checkbox.
3) Go to car 0's options, put the following code for "Attempted to enter vehicle"


LOCAL CarX
LOCAL CarY
SET CarX = Vehicle("this").X
SET CarY = Vehicle("this").Y
SET Vehicle("0").NonExistent = 1
SET Vehicle("1").NonExistent = 0
Vehicle("1").Position2("this", CarX, CarY, 1, 0, Vehicle("this").Direction)
SET Vehicle("1").Child = "main"
SET Vehicle("1").CanMove = 1
Exit

4) Hit OK and close.
5) Open up car 1's options, put the following code for "Player exited vehicle"


LOCAL CarX
LOCAL CarY
SET CarX = Vehicle("this").X
SET CarY = Vehicle("this").Y
Vehicle("this").Exit
Vehicle("0").Position2("this", CarX, CarY, 1, 0, Vehicle("this").Direction)
SET Vehicle("1").NonExistent = 1
SET Vehicle("0").NonExistent = 0
LERP 10
SET Vehicle("this").Velocity = 0
Exit

And there you have it! :D

Tell me if there is any errors >.>

There's been a total of 687 views(s).
There's been 499 people that have viewed.
You must be registered on the forums to vote.

 

Here you will find tutorials that the community has submitted. You get the opportunity to publish a tutorial down below.

Current Tutorials

Search

View by Category

Tutorials I Have Rated

Best Rated Tutorials
Most Rated Tutorials

Most Read Tutorial
Most Popular Tutorial

View by Creator

miroki123 (2)
evergreen (3)
Darkvoid (1)
Deedasmi (1)
AznaThira (3)
metomunc (2)
Neto (1)
Scaveleon (3)
Stephen Chapman (3)
gamer_dude001 (2)
Tehufn (1)
Now3r3 (4)
Samulis (2)
YunO (3)
coffeennicotine (1)
lbdl (1)
C0c1 (3)
MIV (1)
ammohead213 (1)
RPGking (3)
thutman (1)
K-Pone (8)
Ixayou (1)
Mr.Numbers (2)
hellblade (2)
Zarthan (1)
Ovoon (1)
manomomma (1)
epsilon017 (1)
ves75 (2)
TheRunner (1)
icecolddude (1)
DS21 (1)
FacialXpression (2)
Zorc (1)
phosita83 (1)
haraldx (1)
In_the_Bushes (1)
alphakal (1)
todydejaca (1)
Gaba (1)
mm001 (1)

Tutorial Panel

Add a Tutorial

Pending Approval

18 Tutorials In Progress
3 Finished Tutorials