score not resetting
mr_potato
Member Posts: 22
after i press restart and go back to my game my original score did not reset and i continues on from what i died on previously can anyone help me with this?
Comments
Hi @mr_potato Are you using an attribute that a game one (not scene or self)? Are you resetting this to zero in your restart button? Or are you using a table for your values, or are you using Save Attribute & Load Attribute behaviours?
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
in the restart button there is only the attribute where when touched it goes back to game screen, in the game screen there is nothing just an image of my actor b from my previous discussion
the score integer is set to zero
to actually keep the score, in the actor a prototype editor i put, when actor a is touched :change attribute
game score, to, game score +1
i dont think i have used a table for my values just a transparent actor which displays text hense the score
I know i have not used save attribute or load attribute behaviours
@gyroscope
@mr_potato
Hi, Try setting the score back to zero in the actual start button (along with any other reset attributes) on your main game screen rather than in the restart button in a playable level.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps