I'm developing a side-scroller game, which would allow you to fall into pits. But, I have never worked with side-scroller games would enable the player to actually fall into the hole should it be a proc? And if so, how often should the proc be called, and when, and also, could you supply me with a small example, thank you.
EDIT: Also, I need a bit of advice on the Jumping, I'm going to be using the up directional key to use it, however, everything I've programed hasn't worked, could I also get an example of this?
ID:160854
Jul 16 2008, 10:29 am
|
|
Here's a small stub to get you started but no code
turf
pit
Entered()
// if player enters turf start moving him downwards towards the bottom of the screen (calling move would work here)
// when player is off screen or at bottom of the screen do one of two things (show an icon state of the character or kill the player and have them restart the level
Hopefully that'll get you pointed in the right direction. As a side note you could also use areas as areas don't have to be consecutive.