In previous lesson, we learned to set camera to follow the
player. In this lesson we are going to learn how to create Jump Through
Platforms. You may have seen in
platformer games, there are small platforms where player can jump through them
and land on them. Those are the jump through platforms. Let’s add jump through
platforms to our game.
Step 1
Add a new sprite object and name it “JumpThrough”. (we
learned how to add objects in a previous lesson). Add “JumpThrough.png” from
assets > platform. Drag and drop the object on to the canvas.
Step 2
Now we need to add behavior to this object to make it a jump
through platform. Go to Edit object and switch to behavior tab. Click ADD
A BEHAVIOR TO THE OBJECT and choose “Platform” from the popup.
Select “Jumpthru Platform” as the Type from the drop down menu
and click APPLY to save the changes.
That’s all. Now hit Preview button and try jumping
through to the Jump through platform we created.
If you have any question, please feel free to ask below in
the comment section.