reseting the scene dosent reset the score?

thomasrichardgamesthomasrichardgames Member Posts: 263
edited November -1 in Working with GS (Mac)
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?

Comments

  • GamersRejoiceGamersRejoice Member Posts: 817
    in your button that resets the game change attribute score to 0
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    I'm guessing your score attribute is a game.attribute and not a scene attribute...

    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.
  • outasiteoutasite Member Posts: 417
    also you should try to reset everything by hand (make a boolean named reset, then when it is true do change attributes to default values) Tshirt make a good vid on this.

    We do this so that there is no reset loading time on the devices.

  • thomasrichardgamesthomasrichardgames Member Posts: 263
    i have just done what GamersRejoice said, and the score resets which is awesome, but the level complete sign still remains in the scene ... (stormystudio - what rule should i do?) thanks for the help everyone !
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Is the level complete an actor or another scene? May be you forgot to destroy it after certain timing or shift it to another position(x,y)?
  • calvin9403calvin9403 Member Posts: 3,186
  • thomasrichardgamesthomasrichardgames Member Posts: 263
    the level complete is an actor .. i put the rule (when actor touches, pressed , destroy) but it dosent destroy it?
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    hmm... obviously a bit tricky as we dont know your full setup..

    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...)
  • thomasrichardgamesthomasrichardgames Member Posts: 263
    sorted it! thanks everyone
Sign In or Register to comment.