Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Creating a Click-to-Play-Video style game.

Discussion in 'Getting Started' started by Syzzle, Jul 22, 2015.

  1. Syzzle

    Syzzle

    Joined:
    Mar 15, 2015
    Posts:
    4
    Ok so i am making a simulation style game where a player clicks a button on the screen and it plays a certain video, moving him forward, and then i want the video to freeze frame until he presses the forward button again, playing the next clip. I am fairly new to unity so where would i begin to start when doing this? I was thinking about making a canvas and adding a GUI button and then adding MovTexture.Play function if the button is clicked, although, i still have no idea to start with coding, any more questions, feel free to ask. :)
     
  2. FadiGames

    FadiGames

    Joined:
    Jul 23, 2015
    Posts:
    15
    Since you are familiar with MovTexture, you can start the coding by adding a List OR a Dictionary for your videos (as GameObjects), then let your buttons manibulate the Play, Pause & Stop public functions of your MovTexture as well as the reference to the required gameobject
     
  3. Taz-dragon

    Taz-dragon

    Joined:
    May 21, 2015
    Posts:
    38
    I'm not sure if I'm understanding this right, but a stack could work as well.