reseting the scene dosent reset the score?
thomasrichardgames
Member Posts: 263
i have been trying to reset a scene ... i can reset the scene but the score stays the same. For example: On level 1 .. when the level is completed the level complete sign comes up (this is the reset button) .... when pressed, the scene reset but the score stayed on 4, therefore the sign remained in the scene.
How do i reset the score as well as the scene at the same time?
How do i reset the score as well as the scene at the same time?
Comments
There's nothing wrong with that particularly,
just add a rule that resets your score attribute to 0 the same time you do the scene reset.
Hope that helps.
We do this so that there is no reset loading time on the devices.
sounds like it should work...
though if the user completes the level do you want to destroy the actor? or simply make it invisible.
double:
check your rules, and maybe change destroy for:
interpolate, actors image alpha to 0.
(also interpolate image alpha to 1 when it first arrives to add a nice effect...)