Quantcast
Channel: Questions in topic: "javascripting"
Viewing all articles
Browse latest Browse all 105

JavaScript Error

$
0
0
I have a JavaScript that whenever i press a button, in this case "j", it will play an animation (walk). But whenever i use the script on a FPS Controller in standard assets, it says all compile errors must be fixed before entering playmode. function Update() { if(Input.GetKeyDown("w")) { // Plays the walk animation - stops all other animations animation.Play("walk", Playmode.StopAll); } } Does anyone know how to fix it?

Viewing all articles
Browse latest Browse all 105

Trending Articles



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