Make a platformer. Easy, powerful, and quickly (For all levels)

3

Index

Attached Files

The following files have been attached to this tutorial:

.capx

platformer-template.capx

Download now 178.84 KB

Stats

11,105 visits, 25,518 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 16 Dec, 2015. Last updated 30 Jun, 2020

Part 1: Seting up the project

Construct 2 has some features that are awesome and that are sometimes forgotten.

Families

Families are a great tool. It gives you the opportunity to manage many objects together as one greater group.

If you're not familiar with families, look at the manual. They're quite well explained: scirra.com/manual/142/families

We'll create two families:

"Jumpthru"

"TiledSolids"

(However, I recommand using sprites for walls, and floors instead of tiled backgrounds like Scirra did in the default exemple)

Put every Tiled solid platform in "TiledSolid"

Same thing for Jump trough platforms in "Jumpthru"

Functions

Construct has default controls that you can use with most movement behaviors.

However, you might want to set up your own controls.

To achieve this, we'll use functions.

Change the code to have every input call functions corresponding to what it should do:

Then, set up the default actions for each function:

Great job! You just set up your platformer. Actually, just this could be considered as a decent basis for a platformer. But let's add more!

  • 0 Comments

Want to leave a comment? Login or Register an account!