Quantcast
Channel: Questions in topic: "up"
Viewing all articles
Browse latest Browse all 104

Get Button and Get Button Up conflict.

$
0
0
Ok, so I don't know what is going wrong here. The code is pretty basic, but I just don't know why it doesn't pick up on the "Up" part. Any ideas? function Update() { //Check if space is pressed. if(Input.GetButton("Jump")){ variable = true; } else if(Input.GetButtonUp("Jump")){ variable = false; } }

Viewing all articles
Browse latest Browse all 104

Trending Articles



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