How would I make 2-3 background planes (with textures for the backgrounds) move at different speeds as the player moves through the level to give a more lively feel to the game?
Like hills move slower then buildings in front of the hills all an orographic camera with 2d images?
function Update() {
// Move the object to the right relative to the camera 1 unit/second.
transform.Translate(Vector3.right * Time.deltaTime, Camera.main.transform);
}
That moves the the objects (Background or w/e to the camera, should work well for a 2D game, might need to change Vector3.right to Vector3.up or Vector3.forward.
Good luck!
I know this is old, but... Instead of calling the function that's causing the error (BuildAssetsBundles, in this case), you have to add it to the EditorApplication.delayCall delegate. Unfortunately, you may need to write your function in a round-about way, because you cannot receive any return values from functions called this way.
I know this is old, but... Instead of calling the function that's causing the error (BuildAssetsBundles, in this case), you have to add it to the EditorApplication.delayCall delegate. Unfortunately, you may need to write your function in a round-about way, because you cannot receive any return values from functions called this way.
– AutoFire-II