help me make a hidden object game
knightansbert7

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

Comments 106 to 111 (111 total)
foxcode

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.
 

knightansbert7

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?

knightansbert7

uhh i think its working

knightansbert7

when i export to android i cant hear the audio

knightansbert7

i dont understand sir i have 2 lvls that has lifepoints. should i code again in lvl3 ?

knightansbert7

sir everyscene need to have hiddenObject.js? that what i did

Post a reply
Add Attachment
Submit Reply
Login to Reply