Jump to content

Photo

Gravity Spring Jump FFC


  • Please log in to reply
3 replies to this topic

#1 Lemmy Koopa

Lemmy Koopa

    We are the champions

  • Members
  • Location:Ohio

Posted 16 June 2010 - 03:21 AM

Can someone make a spring jump for gravity zones, like in Super Mario Bros?
One with variable height modifying.

#2 Lemmy Koopa

Lemmy Koopa

    We are the champions

  • Members
  • Location:Ohio

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


#3 Lemmy Koopa

Lemmy Koopa

    We are the champions

  • Members
  • Location:Ohio

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.

#4 Joe123

Joe123

    Retired

  • Members

Posted 26 June 2010 - 08:05 AM

CODE
Screen->Flags[SF_ROOMTYPE]&4



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users