1
$\begingroup$

So I've been working on this car game and want the level to restart when you hit the ground outside the track.

I have a collision sensor on the car looking for colliding with an object with the property "Ground" Next, I have that running through an and controller into a scene actuator that restarts the level.

The problem is that the level restarts as soon as you hit the ground outside the track. How do i add a delay between the collision sensor and the scene actuator?

$\endgroup$

1 Answer 1

2
$\begingroup$

This is not possible. An event already happened. What you do is to describe the operations on the event.

But you can lift it to an higher abstraction level. Split the logic into two parts:

  • on collision start a timer

  • on timeout switch the scene

Reference:

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .