Hello all! Another quickie update on game progress today – this one all about backgrounds and foregrounds – particularly of the Parallax kind.
I’ve made good progress on the first “area” of the game and have finally finished putting together the backgrounds (and foregrounds) for the levels. This initial first area is actually pretty much done at this point – woo hoo!
As this is a 2D game, since the beginning I had a grand vision for making big use of “Parallax” backgrounds and foregrounds throughout the game. For those who don’t know this is where you have the background move at a different speed from how the player is moving. When you do this it creates a cool effect that adds a feeling of depth to the scene.
Working out the Parallax backgrounds ended up being way more challenging then I initially thought (as is usual with most things related to this game, lol). This was true on multiple levels – first the technical standpoint (how does Godot actually code this thing out) and then on a workflow standpoint (how do you break up the different sections of the background).
The Godot part was and wasn’t intuitive – there is a special feature in Godot just for creating parallax backgrounds, which was simple enough to understand, but the way the “parallax background node” works got confusing real quick when it came to applying multiple parallax backgrounds on a single scene but across several different rooms.
Basically the way it works is that you have to set a multiplier for what speed the background moves in relation to the camera as it follows the player, but that multiplier always uses the “starting” point for the master scene as it’s refence for the multiplier. So it took me a while to figure out that if you are adding multiple backgrounds across multiple rooms in a single “scene”, you need to change what the multiplier is for the backgrounds for each room the farther away you get from the “start point” for the master scene that holds all the rooms.
Confused yet? It’s hard to explain and took me probably a week to figure the whole thing out, but I finally got it and things are looking good. I definitely have a solid understanding of how to set these parallax backgrounds and foregrounds up moving forward as I make more rooms – so the education was worth the time lol.
The other aspect was figuring out the workflow for how to actually make the different backgrounds in photoshop in the correct dimensions so that it matches up with the floor and ceilings that the player is standing on. Again – a lot of trial and error – but I finally found out I basically just need to take a screen shot of the full room I’m making a background for and then just match that up to the background I’m making in photoshop. Took a while to get, but now that I have it down I think I’ll definitely be a lot faster making them moving forward.
So that’s where I’m at at the moment! The next big thing I’m probably going to tackle is figuring out how to do cut scenes in Godot, wish me luck!
As always you can check out some footage from my parallax backgrounds on my social media accounts linked in the footer,
Thanks!
-Charles