top of page

{

    void Start()

    {

        var videoPlayer = gameObject.GetComponent<VideoPlayer>();

        videoPlayer.Prepare();

 

    }

 

 

    void Update()

    {

       var videoPlayer = gameObject.GetComponent<VideoPlayer>();

       if (videoPlayer.isPrepared) { 

            if(Input.GetKeyDown(KeyCode.UpArrow) || (Input.GetKeyDown(KeyCode.W))

            {

            startVideo();

            }

            else if (Input.GetKeyUp(KeyCode.UpArrow) || (Input.GetKeyUp(KeyCode.W))

            {

               stopVideo();

            }

        }

    }

 

 

    void startVideo()

    {

        var videoPlayer = gameObject.GetComponent<VideoPlayer>();

        videoPlayer.Play();

        videoPlayer.loopPointReached += EndReached;

    }

    void stopVideo()

    {

        var videoPlayer = gameObject.GetComponent<VideoPlayer>();

        videoPlayer.Pause();

    }

    void EndReached(VideoPlayer videoPlayer)

    {

        SceneManager.LoadScene("credits");

    }

}

Final Scene -

'Walking Through Film'

Final scene of the project, where the mediums of video game and film join.

​

By holding forward, the player can experience a sensation like moving through film footage.

  • twitter
  • linkedin
  • instagram
bottom of page