Getting in and out of vehicles?

0 favourites
  • 3 posts
From the Asset Store
Antisuspend Plugin
$7.20 USD
20% off
Antisuspend Plugin for Construct 3 prevents the runtime from getting suspended.
  • Hello,

    What I ultimately wish to do is allow the player to gain control of a vehicle at certain times during the course of playing a layout. Essentially, the player 'gets in' the vehicle and then can drive the vehicle for a period of time, and once that period of time expires, the player is then ejected from the vehicle.

    The problem I am having is switching control and making it so that the player can control the vehicle instead of just the normal person sprite. Any tips on how to go about doing this would be greatly appreciated. Thank you!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Say you're using the 8-direction controls for the player and the Car movement for the vehicle:

    There should be an option to disable the controls (Set Enabled), so you could do something like this:

    On Player collision with vehicle (or press key etc)

    -----> Set player invisible

    -----> Disable 8-direction

    -----> Enable Car movement

    On ejected

    -----> Set player position to vehicle

    -----> Set player visible

    -----> Disable Car movement

    -----> Enable 8-Direction movement

  • Alright, I shall give that a shot. Thank you :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)