2D Car game scene confusion

Hi, I am new bee in Unity 3d. I want to make 2D Car game. First I am trying with few test that am I able to make this racing game or not. The game concept is very simple car goes just straight and it if cross others car it get points and if hit then Game Over just like motor bike’s game “highway rider”. So I am confuse that Should I need to make whole long scene where my car travel one point to another or is this possible that I can create just few long scene and repeat it, I’ll be happy if second option can achieve because this is easy for me to create graphics and if Yes then how can achieve my goal. Please help me and suggest me better way to do this. Thanks in advance.

  1. The main reason I would move the car and not the road, is that if you move the car, you are only moving one object, otherwise, you have to move everything except the car.

They have the same performance though, so it might be a better idea to to keep the car fixed. The best way to do this is create a gameobject that holds the road and all of the other objects(cars, environment,…) except the player car. I would probably still use a trigger to check when the car reaches the end of the road.

  1. The 2D tools are really new and there are not really an good tutorials yet that I’ve seen.

First, set the main editor window to 2D mode. That will lock the camera to XY 2D mode. Then, create sprites from the menu bar at the top. Other than that, it’s exactly the same as 3D.

Make sure and pay close attention to the hierarchy. That is the transform hierarchy of the scene. Each transform inherits the transform properties of it’s parents.

You can create a street scene and when player is at the end of the street, load the level again. At first add a new object at the end of the scenea and remove “Mesh Renderer” component from this object. Now add a tag to this gameobject called END_GAMEOBJECT and make a simple script:

void OnTriggerEnter(Collider other)

{

if(other.gameobject.tag == END_GAMEOBJECT)
{
Application.LoadLevel(“NAME_OF_YOUR_SCENE”);
}

}

It’s possible that you can make a street in your scene and invisible gameobject at the end of this street. To make this object invisible, you must remove from it component called “Mesh Renderer”. Now you must add to this gameobject tag called STREET_END (for example) and make a simple script:

void OnTriggerEnter(Collider other)
{
if(other.gameobject.tag == STREET_END)
{
Application.LoadLevel(“NAME_OF_YOUR_SCENE”);
}
}