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

3

Stats

4,025 visits, 6,507 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 5 Feb, 2015. Last updated 19 Feb, 2019

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.

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Perdi toda concentração quando cheguei no Viva o Brasil kkkkk

    Top dos top o guia!

    For the "gringo" guys:

    I lost all my concentration when I arrived at "viva o Brasil" kkkkk

    Awesome guide!