Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Floating :P
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#3
RE: Floating :P

Use this loop. You'll need to experiment to find the proper values yourself. Just a word of warning, if you constantly apply vertical force to the player to make them float, it may make it extremely difficult for them to move around. You may need to experiment with also drastically increasing their movement speed to compensate for this unresponsiveness. Just make sure you turn it back down when you want them to stop floating Wink
PHP Code: (Select All)
float fPause =  0.0166f;
void SomeRandomFXN(blahblahblah)
{
// run function instantly, name timer same as function name
PLAYER_FLOAT("PLAYER_FLOAT");
}

void PLAYER_FLOAT(string &in timer)
{
//add player vertical body force here
//loop it
AddTimer(timerfPausetimer);


(This post was last modified: 01-26-2012, 03:07 PM by palistov.)
01-26-2012, 03:06 PM
Find


Messages In This Thread
Floating :P - by Elven - 01-26-2012, 12:55 PM
RE: Floating :P - by flamez3 - 01-26-2012, 01:34 PM
RE: Floating :P - by palistov - 01-26-2012, 03:06 PM
RE: Floating :P - by Shadowfied - 01-26-2012, 03:09 PM
RE: Floating :P - by palistov - 01-26-2012, 03:12 PM
RE: Floating :P - by Shadowfied - 01-26-2012, 03:13 PM
RE: Floating :P - by Your Computer - 01-26-2012, 05:57 PM
RE: Floating :P - by Statyk - 01-26-2012, 06:51 PM
RE: Floating :P - by Your Computer - 01-26-2012, 06:56 PM
RE: Floating :P - by Statyk - 01-26-2012, 09:24 PM
RE: Floating :P - by Your Computer - 01-26-2012, 11:13 PM
RE: Floating :P - by Elven - 01-26-2012, 09:59 PM
RE: Floating :P - by Elven - 01-26-2012, 11:54 PM
RE: Floating :P - by Dobbydoo - 01-27-2012, 04:06 PM
RE: Floating :P - by Tripication - 01-27-2012, 04:26 PM
RE: Floating :P - by Elven - 01-28-2012, 10:16 AM



Users browsing this thread: 1 Guest(s)