A quick example for a user on the forums. In this example the movement of a platform character is controller by the left stick while the right stick is used to aim (like mouse aim). The character will always face in the direction of aiming.
Tag Archives: Platformer
Mario Style Coinbox
Here’s a basic example of a Mario style coinbox. This is the type of box that you’d jump at from underneath and bump your head on and a coin comes out of the top.
Controls:
- Left & Right Arrows – Move
- Up Arrow – Jump
Platform – Random AI Jumps
Created for a user on the forums this quick example shows how to use timers for making an enemy AI jump at random intervals. All enemies are the exactly the same but each has a random time to their next jump, something the user was having problems with.
Platform – Basic AI 2
Platform – Basic Random Terrain
Platform – Basic Enemy AI
Platform – Water Example 1
A quick example of water in a platform game. Water is handled in lots of different ways in platform games but this is one way you could implement it in your game.
CONTROLS:
SHIFT – Jump (when on platform and watertop)
LEFT ARROW – Move Left
RIGHT ARROW – Move Right
UP ARROW – Move Up (only in water)
Platform – Falling too far
Here is a very quick example of how you can check if a player in a platform game has fallen too far. In this example it plays a “thud” sound but it can easily be changed to make your character be stunned, break blocks, take damage or even die.
You’ll need the latest Construct 2 beta to open the file.