Time for action — creating parallax scrolling
Luckily for us, Construct Classic makes parallax very easy with the scrolling rate values of each layer. Previously, we set these to 0%
to stop scrolling completely for HUD
layers, but now we can use it to add depth to our levels.
1. Change the
Scroll X Rate
andScroll Y Rate
values of theForeground
andBackScenery
layers to120%, 120%
and80%, 80%
respectively.2. On the
Foreground
layer, create aSprite
calledStraightChain
and paste in our vertical chain sprite. Size this up large and set itsCollisions
mode toNone
before placing a few copies of it along the map.3. Create a similar
Sprite
namedHook
with our hook sprite pasted into it at the ends of some of the chains.4. Add a few more of these chain objects to the layers
FrontScenery
andBackScenery
along the level. Remember that when the player sees them, they will be slightly offset to how they look in theLayout Editor
.5. Next, use the horizontal chain image to create the sprite
HangingChain...