Forum rules - please read before posting.

Input button skip

Hey there!
I have a movie clip playing when the game starts and there's an option to skip with input button - I'd like them to be able to click the screen to skip the movie but I don't know what input button that is? Would it also be possible to skip with touch screen click as well? (For both pc and android platforms)

Thanks so much!

Comments

  • Define an input in Unity's Input Manager named "SkipMovie" and set its "Positive Button" to "mouse 0", which is the left-mouse button. Then assign "SkipMovie" as the button in your Action.

    For mobile, you can simulate this input when the user touches the screen:

    using UnityEngine;
    
    public class SkipMovieTouch : MonoBehaviour
    {
    
        private void Update ()
        {
            if (Input.touchCount == 1 && Input.GetTouch (0).phase == TouchPhase.Began)
            {
                AC.KickStarter.playerInput.SimulateInputButton ("SkipMovie");
            }
        }
    
    }
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.