Need help setting up non-random obstacles

jimmyluciajimmylucia Member Posts: 12
edited November -1 in Working with GS (Mac)
Hey guys,

I am designing a game where the obstacles are in a specific order, and the player actor has to dodge, jump, or avoid them. Before I get too ahead of myself, I want to first design the obstacles he has to dodge. They will be coming from right to left, at a speed of about 2000, and you move the player to avoid hitting them. I know there is a way to randomly have spawned obstacles, but what about specific obstacles spawning? it's one of those games where you have to memorize the pattern layout, and be quick, in order to survive. Any thoughts?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Why not just place your obstacles in a scene in the pattern you want?
  • jimmyluciajimmylucia Member Posts: 12
    Because the scene is scrolling, to give the illusion of driving a motorcycle.
  • jimmyluciajimmylucia Member Posts: 12
    I should elaborate. THe scene is stationary, there objects on the scene that make it appear as if it is scrolling. But there is a pattern to what will pass on screen, and I need help in figuring that out.
  • SAZ_1SAZ_1 Member Posts: 397
    if i understood correctly sounds similar to the bonus level on my game Fowl Ops, except i have the objects spawning randomly...

    basically all you need to do is create one actor.. then create a game integer rule called spawn order... then in your actor lets say you have 3 random objects do this... timer every 1(or whatever) seconds change attribute spawn order to (spawn order +1)%3 .. so spawn order cycles between the numbers 0,1,2 then back to 0,1,2 and so on... then in your actor tell it if spawn order is one spawn object 1, if spawn order is 2 spawn object 2 etc...

    if you want set a rule in the timer to be a integer which can change itself over time so its like it speed up etc...hope that helps.
  • jimmyluciajimmylucia Member Posts: 12
    I actually figured this part out. It might be the long way, but I got it. Now I am just trying to figure out collision with these obstacles, and passing in front of or behind different obstacles in different positions.
Sign In or Register to comment.