Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: EsterionDev on March 04, 2018, 03:44:53 PM

Title: Endless runner with zigzag roads
Post by: EsterionDev on March 04, 2018, 03:44:53 PM
Hello, i'm trying to make a endless runner with zigzag roads like Ketchapp's Zigzag game. Does anyone have an idea on how to do it? if so, please help me! thanks!
Title: Re: Endless runner with zigzag roads
Post by: MattyWS on March 04, 2018, 04:22:17 PM
I actually made one myself using playmaker

https://play.google.com/store/apps/details?id=com.EarlyGames.SuperCube&hl=en

The way I went about it was, I made a straight segment, a left turn segment and a right turn segment, then I dynamically spawned them at random on the end of each other the closer the player got (they spawn off screen). I also put a spawn point on the straight segments in the middle that had a random chance of spawning a cube that you would collect for points.

as for the player controllers, I simply had the player in one of two states, going left or going right. tapping the screen swapped between the two