ID:160854
 
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?
If you're using the same turf(not icon) or they have a common parent for all pits then you could use the Entered() process and override the default. Whether this would work or not depends on how everythings setup as a sidescroller can be a lot of different things though so if I'm wrong and it's not more of a platform/scroller where falling into the pit kills the player (i.e. megaman) Then post a little more detail.

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.