How to make a non-stop moving 2d object for android

Hey, so I don’t have that much experience coding I have been trying to make a game like Geometry Dash, but it hasn’t worked out that good so I was wondering if someone had a script that makes the object move forward and jump between platforms, and also not to jump when it’s in the air, I would appreciate the help and thank you.

Take one step at a time and you’ll get there.

  1. Create a script where in Update() you move the player to the right eg. PlayerObject.x += 1. Ensure your camera follows your player or update it in the script
  2. Place a few random objects on the scene and watch your player run past them
  3. Add storage of these objects and generate them from script - eg. in a variable/array store the floor height at each point in time or a way you can calculate it
  4. Generate these object through code
  5. Add code for determining if you are on the ground based on your location in time vs the variable/array