GTA Style: Enter & Exit Vehicles / Getting in and out of vehicles

Hello, I teach a way to program your character, for him to drive a car as in GTA Classic.

I'm sorry for my English, it is not my mother tongue.

CHARACTER:

Create a Sprite and give the Play name, and create animations: stop and walking.

Add the behaviors below:

- Pin

- ScrollTo

- 8Direction

Create an Instance variables

Name = isWalking

Type = Boolean

Value = true

VEHICLES:

Create a Sprite, add all the images of vehicles like FRAMES, put the name = Veihcles (image 1.2).

Do not forget to put Speed = 0 in the animation.

Add the behaviors below:

- Solid

- ScrollTo

- Car

Make as many copies you want Sprite Vehicles on the properties, change the initial frame them (to give the impression that has several vehicles).

You also can configure the behavior of the car properties individually.

SUPPORT TO ENTER TO VEHICLES:

Create a Sprite with size 20x20, and put the name of enterCar. It will give support to the character to enter the vehicles.

Add the behavior below:

- Pin

Put enterCar in front of Play (view image 1.3).

SHEET EVENT:

When you start the game:

Commands player:

Commands to access the vehicles / Getting in and out of vehicles

Well, that's it!

======== Credits ========

Game Developer: Derik D.F

Viva o Brasil. \o/

Enjoy.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!