Stencyl 3.4.0 is now out. Get it now!

Driving Game - spawn random cars

renato99

  • Posts: 3
Hi, I'm building a simple driving game and I'm trying to spawn cars randomly on the track. I can get them to appear in the same place, so Car1, Car2, Car3 and Car4 will appear at random times, but always in the same position. How can I get the cars to swop and appear randomly in the various positions? I'm sure this is simple, but I'm new to this and just can't figure it out. I've attached my code. Thanks! 


renato99

  • Posts: 3
Thanks Hoss08. I'm struggling a bit with this. I need to recreate most of this, so going to give it a few more attempts.... can't seem to create the attribute "actor type with name" and then add the "car_&random integer between 1 and 4"

And then will I need to create columns for the RoadLanes?