Endless runner automation

Hi, i’m making endless runner game and i try to control game dificulties by score, so if my score get higher i will spawn more enemies and making the game more difficult but how to control that efficiently? not by using if(score > 200){ do things } and so on…

and i’m working with 2d games so i’m using scrolling background and i want to know how to slowly change the background a little by a little…

i hope you understand what i mean :frowning:

it can be as simple as - enemiesToSpawn = score / timePlayed

Take a look at the following Tutorial.

http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/infinite-runner

Give this a try :slight_smile:

http://code5games.t15.org/2014/05/endless-scrolling-backgrounds/