Level with me on the "Levels" :)
-
@ackov77 when you set the score trigger an "if" behavior to check if it is = to 100. Then have the If trigger a load scene behavior(you may need to turn advanced behaviors on).
For turning music off... use either a box container or an attribute and have a started touching behavior add 1 to it. Then connect an IF and check if it is = to 2 and then have a stop music behavior after the If. Then Set the box container or attribute back to 0
-
thank you :)
-
@ackov77 no problem!
-
![alt text]( image url) Does it appear i set things up right?
-
@ackov77 you need to have the If connected under whatever behaviors you set the score with. Also, what is the set input field for?
-
Hello,
I cannot recall what i used the set input for off-hand (i am at work) but i will remove that. Thank You.
One more thing.....don't laugh, lol....in my hidden object scene, i want the objects to disappear in the box too once the object is found. How do i make that happen?? -
@ackov77 use a hide graphic behavior....it may be in advanced as well.
A suggestion, you could you the set color behavior(under transform and maybe advanced) and set it to the same color, but change the opacity to maybe 50% so the user can see all the items collected. -
Awesome! Thanks for your help.
-
@ackov77 no problem!
-
While the solution @iTap-Development gave is better since it's more robust and can be used in multiple ways, we do have this functionality built into the "Add to Score" behaviour (https://hyperpad.zendesk.com/hc/en-us/articles/115003205326-Add-to-Score).
there is a field that says "event when reaches" enter your desired target score here (100)
Then connect a load scene behaviour.Now each time you add to the score it automatically checks if the score is 100. If it is, then it will trigger the load scene behaviour.
-
@Murtaza I forgot about that behavior lol!
-
@Murtaza That sounds good, what tab is this event under? Logic?
-
@ackov77 I think it’s under UI