[quote:amix9xc2](I did this because of what you said in the tutorial)
Thanks Codah, I am always looking for more efficient ways to do things. Coding has never been a strong suit of mine so many of the tricks evade me.
I am more the shade tree mechanic getting the car running with duct tape and JB weld.
[quote:amix9xc2]But you see, if you drive your car to the complete left or right, then you'll never encounter an obstacle. I will need to find something to avoid that. Maybe add some random stopped obstacles on the side of the road. Like cones or whatever.
I just threw this together for someone as an example, didn't tweak the gameplay, if you narrowed the road a little it would eliminate this issue.
[quote:amix9xc2]Can you explain me how the System-Every random(2,8) action work? That it mean that the car is created randomly between 0 and 2,8 sec?
It creates a car every 2 to 8 seconds.
[quote:amix9xc2]I would also like to understand what is the purpose of the line System-trigger once after the spawning? Does it prevent to generate the action twice while the car is still on the layout or not destructed yet?
I am not sure why I used it there without looking at my event but anytime you have an event where the conditions are not specifically triggered once (aka collision) then you need to trigger it once or else it will be run 60x a second (each tick) per iteration until the conditions are no longer satisfied. Example would be an object overlapping condition where you move one object away if it overlaps another it may run through several passes before moving away since it detects overlapping for a duration... by triggering it once it stops after firing off one time until it detects a new triggering of that events conditions.