Parking game help

0 favourites
  • 1 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • I'm creating a parking game with a sprite that has a car movement behaviour (Character). I also have another sprite that scrolls across the screen that has a Solid behaviour. It uses this code:

    MovingCar1 > Set X to MovingCar2.X - SCROLLSPEED * dt

    (The moving car's position is outside the screen, it scrolls to the other side and then destroys itself. It creates a new instance straight after).

    What I would like to know is when (Character) collides with the (MovingCar1), how do I stop both cars? Also, when the cars aren't touching each other, how do I restart the moving car again?

    Hope you understood this and thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)