ID:176317
 
Hi! I know I've asked this before, and I'll ask it again. Can someone please help me with making ramps?

Okay...here's what I need:

I need ramps that are dense from 3 sides (preferrably using the Enter proc,) and when you hit the side that isn't dense, you go Northeast, East East East, Southeast. If you've seen Dracon's skating game, you'd know what I was talking about. If you need more info on what I need, just ask! This is very crucial to the game, so I need it quick. Thanks! CYA!
Tiko587 wrote:
Hi! I know I've asked this before, and I'll ask it again. Can someone please help me with making ramps?

Okay...here's what I need:

I need ramps that are dense from 3 sides (preferrably using the Enter proc,) and when you hit the side that isn't dense, you go Northeast, East East East, Southeast. If you've seen Dracon's skating game, you'd know what I was talking about. If you need more info on what I need, just ask! This is very crucial to the game, so I need it quick. Thanks! CYA!

turf/Ramp
Enter(mob/M)
if(M.dir == NORTH) //You can change this to enter from a certian side
step(M,NORTHEAST)
step(M,EAST)
step(M,EAST)
step(M,EAST)
step(M,SOUTHEAST)

You might want to put a var that stops the person while your on the ramp, you might also want to put some sleep in there because the person will zoom through

In response to Tazor07
Tazor07 wrote:
turf/Ramp
Enter(mob/M)
if(M.dir == NORTH) //You can change this to enter from a certian side
step(M,NORTHEAST)
step(M,EAST)
step(M,EAST)
step(M,EAST)
step(M,SOUTHEAST)

Enter() is the wrong proc to use here; Entered() is correct. Further, you should be putting in some kind of movement delay, and there has to be some way to keep the mob from moving while airborne.

Lummox JR
In response to Lummox JR
thats what i said, and what's wrong with enter()?
In response to Tazor07
Enter() is called when you try to enter it. Entered() is called when you do enter it.
In response to Garthor
Oh, i see.