![]() This will lead to unfilled space at the lower-right hand corner of the screen. Gotcha: Avoid making a background that’s smaller than the screen size Once you've done that, click the Attach to Scene button at top-right corner to attach this background to a Scene.Inside the Background Editor, click the dotted box to choose an image or drag and drop the image in. Importing backgrounds works much like importing any other kind of graphic into Stencyl.Ĭreate a new Background (under File > Create New > Background). ![]() But the mountains in the distance will move relatively slowly because they are far away.īottom Line: You don't need to do anything special to make Parallax Scrolling work in Stencyl, but it helps to understand how this kind of scrolling works. If you look outside your car's window, the close-by buildings you drive by will fly by quickly. In this video, notice how things in the "foreground" scroll by quickly while things in the "background" (hills) scroll by slowly. To think about this another way, since backgrounds are almost always larger than the screen size, they’ll scroll at a slower-pace than the main layers, making them feel like they’re in the distance. Likewise, if you're at the end of the scene, the background will be scrolled through to the end. If you’re halfway through a scene, the background will be scrolled halfway through. This is commonly known as Parallax Scrolling. Put simply, backgrounds scroll at the same pace that you progress overall inside a scene, where "progress" is defined by the location of the Camera. How do Backgrounds scroll? (Parallax Scrolling) Some games even draw backgrounds in front of a screen for visual flair (like in the video above) or to obscure part of the screen. How do Backgrounds scroll? (Parallax Scrolling)īackgrounds are large images that scroll alongside a scene, usually behind or in front of a scene.īackgrounds can visually enhance a game and provide the illusion of depth.
0 Comments
Leave a Reply. |