knucis Posted November 27, 2006 Report Share Posted November 27, 2006 Hi! How can I make knuckles gliding? (with only Knuckles object not creating and other for animation gliding) I use static engine. Link to comment Share on other sites More sharing options...
TRD Posted November 27, 2006 Report Share Posted November 27, 2006 I believe there is an engine on the main site that includes a knuckles gliding and I think it's static too. Your using MMF 1.5 right? Link to comment Share on other sites More sharing options...
knucis Posted November 27, 2006 Author Report Share Posted November 27, 2006 I´m using TGF but it can be for MMF too. I didn´t found the tutorial. Link to comment Share on other sites More sharing options...
TRD Posted November 27, 2006 Report Share Posted November 27, 2006 huh, I could of sworn I've seen one for TGF. Sorry about that then. Link to comment Share on other sites More sharing options...
knucis Posted November 28, 2006 Author Report Share Posted November 28, 2006 Do you have the name of the tutorial or the link? Link to comment Share on other sites More sharing options...
Ryan Cordel Posted November 28, 2006 Report Share Posted November 28, 2006 There is a TGF tutorial about it, yes. Link to comment Share on other sites More sharing options...
knucis Posted November 28, 2006 Author Report Share Posted November 28, 2006 What is the name and the link of this tutorial? Link to comment Share on other sites More sharing options...
USC Posted November 28, 2006 Report Share Posted November 28, 2006 Well, I'll try to explain it here... Okay, the first thing you need to do is check to see if Knuckle is either jumping or falling. Depending on your engine, that could either be determined by a flag (IE : If Flag 10 is on, display Knuckle's jumping animation) or by his Y velocity/speed (IE : If Knuckle's Y velocity is different than 0, display Knuckle's jumping animation). Now, you'll wanna see if the player has already let go of the jump button (after he jumped), and is pressing it for the second time to start the glide. The concept behind that is explained in this topic... http://www.sonicfangameshq.com/forum/showthread.php?t=1113 Okay, once you've determined that this is the second time the jump button has been pressed, either set a counter to a value, or set a flag on. Now, go back to your gravity code. You'll need to create two types of gravity. IE... ~If Glide Flag is OFF, AND Y speed is greater than 0 ~Every .13 seconds *Subtract 5 from Sonic Y speed {This is regular gravity} ~If Glide Flag is ON, AND Y speed is greater than 0 ~Every .13 seconds *Subtract 1 from Sonic Y speed {This is gliding gravity, which is much lighter} Finally, if you let go of the jump button, then the flag is set back off, and you fall. ---------------------------- I hope that helps. Link to comment Share on other sites More sharing options...
Recommended Posts