|
Post by runes on Apr 11, 2013 10:24:19 GMT
I'm making a game and I'm trying write a score to a textfield. I've made a textfield with ScriptId 'Scoretext'. In the general script I've made a variable called score.
now in the On Update script I've added something like this:
if(blah blah blah){ score=score+10; TextBoxSet("Scoretext","Score: "+score+""); }
When playing I get this error:
"Error: The function 'TextBoxSet' failed. The given key was not present in the directory"
Shouldn't this be working? Or am I doing something wrong?
|
|
|
Post by Hippani on Apr 11, 2013 13:28:06 GMT
Yes that should be working, could you send us your .hani file so we can figure out what went wrong?
|
|
|
Post by runes on Apr 11, 2013 13:38:38 GMT
|
|
|
Post by Hippani on Apr 11, 2013 14:35:20 GMT
OK, we see the problem. The score text should be a "TextBox" not just "Text". We are going to try and create a better error message for this.
|
|