I'm trying to recreate the camera shake from the show Dogfights. When they do a fly-by shot, as soon as the aircraft passes the camera, the camera shakes. I'd like to use Millisecs() for this but I'm open to all options.
I need it to be more random (not circular) and slowly return to a steady state.
If KeyHit(57) shaking = True shake_strength# = 2.0 EndIf If shake < 0 shaking = False shake_strength = 0 EndIf If shaking = True TurnEntity camera,Sin(MilliSecs() Mod 360) * shake_strength,Cos(MilliSecs() Mod 360) * shake_strength,0 shake_strength = shake_strength - .9 * dt EndIf
I need it to be more random (not circular) and slowly return to a steady state.