Runner Random Spawner
Im currently making a sidescroller with a little cool twist. and im trying to achieve a simple random obstacle spawn code. The hero actror will have 0 velocity X and obstacles will be moving Velocity X -600 towards the actor.
Im planning on 3 types of obstacles "Low jump" High double jump" and "Slide Under" each actor will have 3 images so its not visually the same obstacle.
I would like a random selection to choose between actor Low / High / Slide and then choose one of the 3 images for that actor
And then Increase the Difficulty to a quicker Random selection.
Im really struggling to lay the foundations to this code could anyone help me with the best way please. Also im guessing maybe a table would be better suited?? I have 0% XP with tables but will some work into them if thats suggested.
Thanks in advance.