[Beginner] Creating endless runner

Hi,

I’m a 17 year old new to programming, looking to create an endless runner game in a subway surfers kind of way. Vertical runner not a horizontal one.

But first of all I need to know is how to structure this type of project. Where do I start ? How do I generate terrain ? Where should I create my hero and background ? :face_with_spiral_eyes:

I just need some advice to get the hang of things, I’m using unity free and I don’t think I’ll be able to buy assets until I’m deep into my project.

Thank you for your help.

Endless runners can be accomplished by having the player character running constantly forward, spawning and destroying objects, or have the player stay still and have objects scroll past him

yeah. either spawn prefabs in or generate them with some random algorithm. it all depends on what you want to do

If your new, then learn programming. Don’t just jump straight into game programming because it is such a system shock for new people. It’s not easy so go look for some c++ tutorials. Go to thenewboston.org and they have some awesome video tutorials for beginning programmers. After that, create some cool console games and THEN try game programming. Trust me, it will make your life easier

You start by using the standard unity asset ‘cube’ as the player and also for the terrain and get the functionality working with these placeholders.

This tutorial will help you, once you have it working and understand it you should be able to then alter the camera and controls to create the game view you want.

infinate runner tutorial

If you would like to stand (with a running animation) and the objects to move, you could create a plane as terrain as a background. You can change the texture offset according to Time.deltatime, so that you have a (boring) game. After that you can start creating objects that you can collect / have to jump over / have to evade / what ever. As softwizz mentioned, you should start with placeholders to get the mechanics working. Making it good-looking isn’t that kind of a big deal in the end.

Thank you for your answers, I’ll start off with the mechanics and get them working smoothly. I’ll make the terrain move, I think it’ll make things a bit easier for me.

#pragma strict
var scrollSpeed_X=0.5;
var scrollSpeed_Y=0.5;
var count:int;
var bool : boolean;

{

}

function Update()
{

var offsetX=Time.time * scrollSpeed_X;
var offsetY=Time.time * scrollSpeed_Y;
renderer.material.mainTextureOffset=Vector2(offsetX,offsetY);

}

use this and u r done

Not a good way if you creating modern endlees runner game like temple run oz etc, I anm currently creating a tool to speed up the process of creating endless runner kit

1612493--98057--$Untitled.png
1612493--98058--$Untitled.png