Can someone make a spring jump for gravity zones, like in Super Mario Bros?
One with variable height modifying.
Gravity Spring Jump FFC
Started by
Lemmy Koopa
, Jun 16 2010 03:21 AM
3 replies to this topic
#1
Posted 16 June 2010 - 03:21 AM
#2
Posted 17 June 2010 - 08:46 PM
Nevermine, I made one myself.
CODE
ffc script spring {
void run(int direction){
while(true){
if ((Abs(Link->X - this->X) < 16) &&
(Link->Y > this->Y - 16) && (Link->Y < this->Y-12)){Link->Y = this->Y - 15;
Link->X = Link->X + this->Vx;
if (Link->Z==0){
Game->PlaySound(75);
Link->Jump=5;
}
}
Waitframe();
} // end of while loop
} // end of void run
} // end of ffc script
void run(int direction){
while(true){
if ((Abs(Link->X - this->X) < 16) &&
(Link->Y > this->Y - 16) && (Link->Y < this->Y-12)){Link->Y = this->Y - 15;
Link->X = Link->X + this->Vx;
if (Link->Z==0){
Game->PlaySound(75);
Link->Jump=5;
}
}
Waitframe();
} // end of while loop
} // end of void run
} // end of ffc script
#3
Posted 18 June 2010 - 06:28 PM
How do I check if the gravity/sideview flag is on?
I thought it was
Screen->Flags[1]
but it's not.
I thought it was
Screen->Flags[1]
but it's not.
#4
Posted 26 June 2010 - 08:05 AM
CODE
Screen->Flags[SF_ROOMTYPE]&4
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users