Alright, guys I’m looking into making a 2D infinite sidescrolling runner game in the new 2D framework.
Here are a few questions I want to materialize concretely into solid answers before I start working on it.
-
Is it better off to move the background/floor backwards, or move the player forward? I’m going for a jetpack joyride style infinite runner where the player’s X position will be fixed on the screen.
-
I want to have the game load all the resources ONCE in the starting. I have pro version so I can use LoadLevel Async, but how would I be able to load ALL resources in the start, without having any load time before actually loading the level?
-
Let’s say I somehow load everything at the start of the game, is it still possible to cycle through a list of gameobjects. For example, for random generation of the floor, I would require a list or array of gameobjects. Generally I would do this by dragging and dropping the required assets into the inspector field. But if I load everything at the start, I am assuming I would have to use a different approach. Could someone please explain how this would work out?
-
Far saving user data, such as upgrades bought, levels completed, etc. is there a better way (or rather, SAFER way) than PlayerPrefs? I was watching a video tutorial by someone at Unity and he said playerprefs aren’t very reliable as they are stored in a text file on the hard disk. He didn’t specify the alternative though, so if you know how to store data more securely using playerprefs, please let me know.