Double-jump in TGF (without custom platform)
Author: | Weston L
|
Submitted: | 25th November, 2003
|
Views: | 5913
| Rated: |
|
|
This article will show you how to make a character double-jump without needing a custom platform movement. This will definetly work in The Games Factory, not sure about MMF (but probably).
==Creating your objects==
- Character (We'll call him 'Runner') with platform movement
- An active object (We'll call it 'Box') with a height of maybe 5 px or so, width about the width of 'Runner', with 2 frames, repeat= 1, with speed 60
- Ground for 'Runner' to stand on set as either Obstacle or Platform
- A counter (We'll call it 'GroundY')
- Another counter (We'll call it 'JumpCount')
==Events==
= 'Runner' collides with obstacle background
: Stop 'Runner' & Set 'GroundY' to Y pos. of 'Runner' & Set 'JumpCount' to 0
= 'JumpCount' = 0
+ Y position of 'Runner' < Value of 'GroundY' - 80
+ Player1 pressed fire 1
: Create 'Box' at a little above the base of 'Runner' & Set 'JumpCount' to 1
= 'Box' animation Stopped is over
: Destroy 'Box'
= Collision between 'Runner' and 'Box'
: Stop movement of 'Runner'
= Always
: Make 'Box' invisible
It may not be the best way to go, but it works and it can be used with the built-in platform movement.
Thanks for reading my article. Good luck with your game!
-Weston L
|
|
Weston L
Registered 16/12/2002
Points 1603
|