![]() ![]() ![]() Set the position of the secondary camera to (0,0,-10) and then arbitrarily move it up on the y-axis so that it’s out of the way. Set the Depth of the secondary camera to be lower than your Main Camera or you’ll cover up your other game objects. Since this is a 2D game, we’re going to set our secondary camera’s projection as “Orthographic”, same as our Main Camera. So long as your second camera has the same “Target Source” as your main camera, you’ll see both sets of objects in the same screen in your Game view. This way, those objects aren’t cluttering up your Scene view when you’re trying to work with the more prominent objects. You can create a secondary camera whose sole responsibility is to capture the things happening in the background of your game. After a bit of research, I came across a tip that I found to be quite handy. Double-check that the Wrap Mode is set to “Repeat” and that’s it! That still begs the question, “How do I make it MOVE?” SetupĬlick on your background sprite in the Project view so that you can see its properties in the Inspector. Textures, by default, repeat which is exactly what we’re going for. The less moving parts there are, the fewer issues we’re eventually going to run into when we have to start debugging.Īt this point, it occurred to me that I could use my NebulaBG sprite as a texture. So let’s get moving.Īfter knocking my head around on the idea of taking this repeatable nebula image I’d found, duplicating it, and then moving each one after the other as they move across the camera… well, it seemed like a whole bunch of moving parts, so to speak. Futuristic and motion, race and linear Speed lines technology Data connection abstract. ![]() Geometric and dynamic, trendy layout for racing club or sport competition, event poster. It worked for me for maybe a day but it was still missing something. Abstract colorful speed background with lines Abstract colorful speed background with lines in shape of track turn. Because of this animation, the shoppers will never get bored of looking. ![]() I’ve been feeling like our game environment has been a bit stale lately, which is why I switched up the background in my last article. Online merchants make their website attractive with the pictures moving on the screen. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |