Week 4: Wall sliding and smoother movement
Step 1: Improved movement
We can make moving left and right feel nicer by constantly checking if the movement keys are pressed, instead of just relying on “when key pressed”
Step 2: Wall sliding
Many platform games have the ability for the player to grip onto the sides of walls to slow down their descent. We’ll add this to the player script.
Step 3: Wall jumping
Some games even allow the player to jump from wall to wall, allowing for some pretty acrobatic manoeuvres.
Step 4: Longer press, higher jump Part 1
We can have the player jump further if they hold down the jump button for longer.
Step 5: Longer press, higher jump Part 2
Step 6: Longer press, higher jump Part 3
⚡ Bonus Activities ⚡
Power-up effect Part 1
In many games the player character can achieve a power-up state by collecting a special object, or by performing a certain task. Here we will cover how to achieve the animated effect for a power-up state. The large flames work well for this.
Power-up effect Part 2
Power-up effect Part 3