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 Is it possible to stop a screen shake with a script?
serbusfish Offline
Member

Posts: 211
Threads: 75
Joined: Aug 2012
Reputation: 0
#5
RE: Is it possible to stop a screen shake with a script?

(08-04-2016, 06:32 PM)Darkfire Wrote: Can't see such a command either. But you can always use looping timers!

Maybe do something like this: Set up a beginning shake with a fade in

StartScreenShake(float afAmount, float afTime, 3.0f, 0.0f);

and a timer that will loop. In the looping timer function put another screenshake, but this time instead of fading in and out have it start and stop abruptly, smth like this:
StartScreenShake(float afAmount, float afTime, 0.0f, 0.0f);

Then stop the looping timer when it is needed and perhaps add a last screenshake that will end with a fade.
StartScreenShake(float afAmount, float afTime, 0.0f, 3.0f);

I have no idea if this would look ok, but it's worth giving a shot.

That is what I will have to try I think, I would think it'd work but i'll see Big Grin

08-15-2016, 02:09 PM
Find


Messages In This Thread
RE: Is it possible to stop a screen shake with a script? - by serbusfish - 08-15-2016, 02:09 PM



Users browsing this thread: 1 Guest(s)