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!