Building off Class Arrays

Hello!

Alright, so I have an endless runner game I created using the tutorial: https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gbY4FN8pZuEPVC9PzQThNn1/VJOMdHzp3b8/index.html

Now I want to strike out on my own and add onto the tutorial with my own ideas.

I have 2 class arrays: Floor Tiles and Floor Curves

Floor Tiles are straight pieces: Forward, Ramp up or Ramp down. While Floor Curves are pieces that turn Left, Right or make you Jump.

Problems:

#1: Floors Spawning ![alt text][1]
Above is my code: I have been fiddling with For and While loops trying to figure out how to just simply have 20 floors appear (1/1 spawn/despawn rate), however my program constantly stops at a certain number and never spawns more and doesn’t take anything away. I’ve taken out the code I have messed with before, but I think this part is being more effected by Question 2, as that is when the problem came about.

#2: Taking from an Array

Oh good LORD! WHAT HAVE I DONE?! Here was my thinking and maybe it needs simplification: I have 2 array matrix, one for AddFloorTile and the other is AddFloorCurve (Not pictured, once I understand Tile this shouldn’t be so hard).

Here is what I want it to do: Game Starts [20 floors appear before the player.] [The FIRST floor he is on top of is the START Floor] → Player begins running —> [1 floor disappears behind him, 1 floor appears before him] [FIRST floor is never called again (effect starting line), HOWEVER I want for the first 10 floors that are called to be from the Array AddFloorTile (This has 0:Straight Floor, 1:Ramp up Floor and 2: RampDownFloor). For these next 10 floors I want to be able to pick at RANDOM, but only from AddFloorTile.—> Player gets to Floor 11 —> Now I want to throw the player a curve ball.
I want to CHECK FIRST: Has player gone 10 floors of AddFloorTile before hitting a curve?
Yes? I want to throw them a CURVE. IF thrown a curve set Straight == 0.
No? I want to give them a (Straight, Ramp up or Ramp Down). Straight+= (adding 1 to variable)

I feel like in my logic for “AddFloorTile” I may be having too many For Loops and not just using regular IFs (Branch). Is this effecting my spawning rate? I have “Set Life Span” as well, but I haven’t noticed that work the way I thought it would, where the floor would disappear in 1.5 seconds.

Please let me know if I need to be more clear and if anyone knows what steps I should try next? Thank you!