Hi Guys,
Got another newbie question. When I create functions/variables in init, how do I access them from the online interface? If I don't use the interface and just write the app.js code I can get them to work, but calling them from the interface is eluding me. Accessing variables from init..... ??? How would I update the score and scoreText from the following in one of my objects mouse down events (etc)
this.init = function()
{
var score = 0;
var scoreText= new TextSprite(score.toString(), '40px Arial', 'yellow');
var scoreObject= new SceneObject(scoreText);
wade.addSceneObject(scoreObject);
scoreObject.setPosition(-365, 270);