I created an object in the shape of a sort of tunnel piece. I have the object loaded into DB (20 of them exactly, the same object) and have tried to place them randomly to create a random tunnel (not with multiple ways to go, just one path).
I have the z plane correct for the most part, but my x and y positions are off cuz the tunnel space is not wide enough for the camera to pass through without passing through the 'walls' of the tunnel pieces. I don't really want to angle the pieces like an actual tunnel (with a curved path) because the pieces are separate and animate by rotating left and right.
Sorry to bug whoever reads this but this is the idea:
#1 the camera is scrolling forward (got that one!)
#2 a very long tunnel composed of the same object. (right now I just placed 20), don't know how to make it so the same objects used earlier will just be replaced once they're off the screen, cuz you can't turn back and I don't want a million polygons of the same object in my game.
#3 the objects (tunnel pieces) are placed randomly so the tunnel path winds left and right and and up and down. (they look like a mess right now- I used the rnd command- still a mess)
#4 the pieces rotate in opposite directions. Each other one rotates left, the others rotate right (I got it but I did a rotate command for each one, cuz I don't know how to use the inc command which I think is the one I'm supposed to use.)
#5 I would like to place random textures on the object pieces or maybe for different levels place a different texture on the object. Haven't even tried that one yet.
#6. You can move left, right, up and down, but not forward or backward cuz the camera is constantly moving forward at a slow rate. Maybe as levels advance the forward speed would increase. I don't want the camera to rotate like you're looking in a 1st person game so I think I did the right thing by using the position camera command. (right?)
#7. Obviously there's gotta be some point of this: if you run into the walls- YOU DIE (well, not you obviously, your poor pitiful character who I haven't even thought of making yet). I haven't even tried to use the collision command yet.
Well, that's it- I am trying simple stuff for starters to get a hang of this and I am totally addicted to DB already.
If you can get this code to work feel free to use it in for your game ideas for some random tunnel runner/maze type games. This code is probably full of redundancy or major ignorance and I'm sorry for that. But the people on this forum have been so helpful and for that I am extremely thankful.
Alan
Therefore if any man be in Christ, he is a new creature: old things are passed away; behold, all things are become new. II Corinthians 5:17