ufplans.blogg.se

Controlling speed with ae pixel sorter 2
Controlling speed with ae pixel sorter 2













controlling speed with ae pixel sorter 2

In this tutorial I would like to show you my implementation of this effect in my upcoming 2D game.

controlling speed with ae pixel sorter 2

In order to demonstrate the solution, I will use the concepts and graphics prepared for one of the levels in Bionica game. This is my own project in which I’d like to create pixel-perfect environments that would be satisfying to watch. To do this, I’m going to first prepare background layers in Aseprite. Preparing backgrounds and foregrounds of the level After that, I’ll make a C# script that will bind everything together inside Unity. If you read my previous article on achieving pixel-perfect graphics you’ll know that my reference resolution is exactly 320×192. To comply with that specification I’ll create an empty canvas in Aseprite with that size, but will add 32 pixel to the height. The reason for this is that I would like to add a nice and subtle “drop-down” effect when the player enters the level.

controlling speed with ae pixel sorter 2

Therefore, the final resolution of background layers will be 320×224. I’m making sure that the background of the new canvas is set to transparent. Now, before you start drawing anything, you have to decide how many layers of parallax you are going to have in your game. Just remember, that the more layers you have the more complex your scenes are likely to be.įloat distance = * parallaxFactor I went for a total of 6 layers but it is entirely up to you. #CONTROLLING SPEED WITH AE PIXEL SORTER 2 PLUS#.#CONTROLLING SPEED WITH AE PIXEL SORTER 2 FULL#.















Controlling speed with ae pixel sorter 2