playMaker

Author Topic: Endless road - how to snap road patches.  (Read 1821 times)

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Endless road - how to snap road patches.
« on: September 02, 2014, 07:54:24 PM »
I try to set an endless road and I already saw this post: http://hutonggames.com/playmakerforum/index.php?action=post;topic=4550.0;last_msg=21410

As the forum warning suggests I decided to open a new thread. I got the same approach like Jeanfabre did in his demo package for the destruction of the passed patches, but I can not figure out how the patches are actually created. There's a float modulo action attached on the car object, but I cannot understand how it works and does it have something to do with the creation of the new road patches. If yes, how does it snaps them exactly so there are no gaps?

My setup is almost the same. I move the car itself, not the platforms and I've attached a destroyer to it, which upon collision destroys the road patch behind. However how to exactly create the road ahead so it could be perfectly snapped.

And yes, once that resolved I'll go and try make it work with array list.

Thank you!
« Last Edit: September 02, 2014, 07:56:12 PM by Lockon302 »