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
How To make something Levitate ?
gosseyn Offline
Member

Posts: 63
Threads: 7
Joined: Sep 2010
Reputation: 1
#9
RE: How To make something Levitate ?

that is a good idea nofsky, i am trying that right now and it is the closest i found to what i am trying to achieve, thanks!

edit : i found a semi-solution, i play with gravity, impulses and block boxes that are blocking everything but the player. But i still have problems making a good loop with impusles, i try something like :

while (1)
     {
          AddTimer("", 1.0f, "LevitateUp");
          AddTimer("", 2.0f, "LevitateDown");
     }

void LevitateUp(string &in asTimer)
     {
          AddPropImpulse("MyChair", 0.0, 1, 0.0, "world");
     }

void LevitateDown(string &in asTimer)
     {
          AddPropImpulse("MyChair", 0.0, -1, 0.0, "world");
     }

I know my while loop is an infinite loop, and it is making the game crash, but i think maybe i don't know where to place it. I want the levitating effect to start as soon as the player enters the level. Any input? Thanks.
09-19-2010, 05:32 AM
Find


Messages In This Thread
How To make something Levitate ? - by Alroc - 09-18-2010, 11:57 PM
RE: How To make something Levitate ? - by gosseyn - 09-19-2010, 12:07 AM
RE: How To make something Levitate ? - by Alroc - 09-19-2010, 01:08 AM
RE: How To make something Levitate ? - by Alroc - 09-19-2010, 01:22 AM
RE: How To make something Levitate ? - by nofsky - 09-19-2010, 03:04 AM
RE: How To make something Levitate ? - by gosseyn - 09-19-2010, 05:32 AM
RE: How To make something Levitate ? - by gosseyn - 09-19-2010, 11:51 AM
RE: How To make something Levitate ? - by jens - 09-20-2010, 07:17 AM



Users browsing this thread: 1 Guest(s)