Image Jumpscare in Front of Camera

Hello, I’m trying to make one of those cheap, really loud jumpscares where an image on a plane would be placed in front of the player camera, as a child, and wait for a certain amount of time, and the jumpscare would pop up again.

I’ve gotten everything down, but I’m wondering how I would achieve this effect at 0:30 (WARNING! IT IS A JUMPSCARE!)

where the image shakes frantically across the screen like so. Maybe a random offset float of some kind? Any help would be greatly appreciated! :slight_smile:

IEnumerator Shake() {

    float elapsed = 0.0f;
    Vector3 originalCamPos = Camera.main.transform.position;
    while (elapsed < duration) {
        elapsed += Time.deltaTime;          
        float percentComplete = elapsed / duration;         
        float damper = 1.0f - Mathf.Clamp(4.0f * percentComplete - 3.0f, 0.0f, 1.0f);
        // map value to [-1, 1]
        float x = Random.value * 2.0f - 1.0f;
        float y = Random.value * 2.0f - 1.0f;
        x *= magnitude * damper;
        y *= magnitude * damper;
        Camera.main.transform.position = new Vector3(x, y, originalCamPos.z);
        yield return null;
    Camera.main.transform.position = originalCamPos;

This is the CameraShake Coroutine I use. Modify the damper and x and y floats for best results! GL and post your result as a video!