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
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#11
RE: Floating :P

Nah, the black box are last option. I prefer if it slowly goes down.

(01-26-2012, 03:09 PM)Shadowfied Wrote:
(01-26-2012, 03:06 PM)palistov Wrote: 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); 

I didn't know you could make a void like that..(PLAYER_FLOAT("PLAYER_FLOAT")Wink

Also what does float fPause do?
I did use that, but the effect was as I said in the beginning:

In onstart: AddEntityCollideCallback("Player", "slowmo", "slowmotion", true, 1);

void slowmotion(string &in asParent, string &in asChild, int alState)
{
AddTimer("FlyDown", 0, "FlyDown");
AddTimer("EndSlo", 1.5, "EndSlo");
}

void FlyDown(string &in asTimer)
{
AddPlayerBodyForce(0, 1700, 0.0, false);
AddTimer("FlyDown", 0, "FlyDown");
AddDebugMessage("Happens", false);
}



Dare to explain more please Smile?

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 01-26-2012, 10:01 PM by Elven.)
01-26-2012, 09:59 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)