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?
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#2
RE: Is it possible to stop a screen shake with a script?

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.

08-04-2016, 06:32 PM
Find


Messages In This Thread
RE: Is it possible to stop a screen shake with a script? - by Darkfire - 08-04-2016, 06:32 PM



Users browsing this thread: 1 Guest(s)