Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

Tails Flight Gravity


Recommended Posts

So I have the base of Tails flight complete, he goes up upon pressing the button and such, but I don't know how gravity is changed for his flight? I know the maxYspeed is decreased but is there anything else that goes into.

 

(I'm working in Game Maker 8)

 

I coded it as such:

 

 
// Script - Step Event - Flying Action
 
if Yspeed > 4 {
Yspeed      = 4;
}
 
if KeyJumpPressed && FlightTimer > 0 {
Yspeed -= 2.0;
}
 
 

 

At least something along the sorts. And I don't know why it's sticking Tails to a Yspeed of 4 if it drops below it. I know what the code does but shouldn't pressing it subtract Yspeed by 2 therefor getting it below the Yspeed cap? I don't know I can go further in depth if need be.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...