Function bugs in touch script

I have a script here that adds in onscreen analog sticks, but it’s not letting me add in another function. What am I doing wrong?

From a quick glance, assuming the onTouchStart is the new function that you are adding, you’ve put this…

}
onTouchStart: function(evt) {

It needs to be this…

},
onTouchStart: function(evt) {

Note the , after the previous }

1 Like