Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Input.GetMouseButtonDown no working

$
0
0
i have a get mouse button down script for an sprite for when i click the 2d sprite a level loads. I though it worked but it turns out everywhere i click i load the scene. How do i make it so when i click on the sprite on its own a scene loads. function Update () { if(Input.GetMouseButtonDown(0)) Application.LoadLevel("1"); }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>