Hi,
Thanks very much.
That demo looks really good.
I tried implementing your example attached .capx in my file but I could not get that to work though. I tried exactly replicating your example to my file.
The cars in my file would still keep overlapping, but your demo it all works fine.
I managed to code something with a little extra coding and now the traffic works.
I also disabled the Bullet behavior for the Player it's working now :)
Now my cars use the wrap behavior, which works fine, except that the wrap behavior doesn't take into account that it should stop for other cars.
You see, the car must first be fully out of the screen area, before it enters it from the bottom.
So if I don't drive forward, the cars that are wrapping on the top, will bunch up on the bottom and overlap eachother. I guess I could add extra cars below the existing lanes and remove the wrap behavior, but I was wondering if wrap could still be used to save time and memory space.
Any ideas?
Regards
EDIT: I think it can be done with adding 200px to the Y of the car that is overlapping. Or going to overlap. Tried some coding, but so far it's giving me weird results or the cars still bunch up.