im new to wade , kindly help me first make a welcome message and game menu . then lvl1 find 5 garbages in the river. with timer and score
Ok. I'm not sure where you change the level, but where ever that happens, you need to set the score to 0, and set the score text sprite to 0 aswell
wade.app.score = 0;
_.scoreText.getSprite().setText(wade.app.score);
As long as your score object is still called scoreText and has been added to the scene, this should work.
this.owner.objectToFind = false;
wade.app.score = (wade.app.score || 0) + 1;
_.scoreText.getSprite().setText(wade.app.score);
if (!wade.getSceneObjects('objectToFind', true).length)
{
_.congratzMessage.setVisible(true);
_.timer.stop();
_.arrowbutton.setVisible(true);
}
return true;
you want me to put that code here?
uhh i think its working
when i export to android i cant hear the audio
i dont understand sir i have 2 lvls that has lifepoints. should i code again in lvl3 ?
sir everyscene need to have hiddenObject.js? that what i did