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
Script Help Scripting a fall sequence.
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#2
RE: Scripting a fall sequence.

Depends what you consider to be easy Tongue

You wouldn't have to worry about the falling speed, as the engine already has gravity - all you have to do is push the player off and let it take care of the rest.

As for screen/camera effects, it depends on how much you really want. Using StartPlayerLookAt etc you can get them looking the right way, and also to get their camera to move around appropriately but it looks like quite a short drop, so there isn't going to be enough time to do anything super complicated.

Just take it step by step. First work out how to push them over the edge (AddPlayerBodyForce, probably want to make the railing non-collidable), then take time to use StartPlayerLookAt with a timer to get them looking the right way, then add some rolling if it seems appropriate. Break the problem down into steps and take them one at a time.

Honestly, using a Wake Up script as a template for this is probably a bad idea - you'd have to do so much work to it to get it right that you may as well write it from scratch anyway. You would still need to understand the process to be able to adapt the wake up script, so there is little to no benefit

Hope that helps!

07-01-2013, 06:34 PM
Find


Messages In This Thread
Scripting a fall sequence. - by Pshyched - 07-01-2013, 04:24 PM
RE: Scripting a fall sequence. - by Adrianis - 07-01-2013, 06:34 PM
RE: Scripting a fall sequence. - by DeAngelo - 07-01-2013, 09:04 PM
RE: Scripting a fall sequence. - by Your Computer - 07-02-2013, 01:48 AM



Users browsing this thread: 1 Guest(s)