Hello guys!
So here's the thing, I'm working on a new game concept based on the Auto-Runner base.
I'm including the .CAPX for more lisibility and making myself clear because my problems are quite complicated to explain.
The .CAPX can be found here: http://dl.free.fr/iRgRCD0HL
I used the Auto runner base because I want to make a horizontal dodging game.
I don't need the block platform, but I used the set-up of it to base my random incoming obstacle events on.
Just imagine a top view of a freeway, and the goal is to dodge the cars that comes at you.
The player isn't moving, it's the background that simulate the speed. Just like in the Auto-Runner game. And of course the game generate obstacles in those 3 lanes, so you actually have to dodge switching from one lane to the other pressing up and down.
Gameplay:
Lane 01---------------------------------------------------
Lane 02---------( player )-------------<-<-<---[////] incoming obstacle
Lane 03---------------------------------------------------
Lane 01---------( player )------------------------------ obstacle dodged
Lane 02-------<-<-<---[///]-----------------------------
Lane 03----------------------------------------------------
So the goal is to avoid the most obstacle before getting hit and being destroyed. Simple
The time you spend avoiding collision is pretty much your score.
My problems are the followings:
1- How can I make sure that there will always be a way to dodge. How can I configure an event that say that if 3 obstacles are on the same X segment upon creation he has to destroy one of them to give the player a chance to dodge them.
I would like to have some kind of a randomized creation system, so the player won't find a pattern to pass trough the game.
That's why I don't want to do a System-Every X seconds// System-create Obstacle on lane 1.
2- I would like my player to be on a rail ( Player.X being always the same), so how can create an event that will add Y+30 (Just random number to make my point) when he push up, and Y-30 when he push down. Just basically switching from one of one lane to the upper or lower one. Maybe there is a better way to do that...
Thanks you very much for the help!