High score problem =(

Hello guys!
The problem is..
When i destroy all my blocks with the rule set touch inside and without release the touch
i have the high score working great but if i change my touch rule to pressed and destroying my blocks one by one
my high score is equal to 0 ( in game the score change)
what is this problem, i never saw something like that haeuhuaehuae
somebody can help me, please?!

Comments

  • TokuharaTokuhara Member Posts: 94
    Try to add a timer for destroy.

    Example:
    Rule - On Touch is Pressed
    Change attribute highscore "to" highscore+1
    Timer: after 0.1 seconds
    Destroy this actor

    You can try it without the timer, but sometimes it will not add points to the score as the block will be destroyed before it...
  • mmmodelmmmodel Member Posts: 46
    edited June 2013
    @Tokuhara with the timer set to 0,4 worked nice =)
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You can actually make the timer .02 seconds as it takes .02 of a second for the code to scan again. I usually use .04 just to be safe.
  • mmmodelmmmodel Member Posts: 46
    @FryingBaconStudios Thanks!!! with 0,4 works perfect :)
  • TokuharaTokuhara Member Posts: 94
    Glad you did it! :D
Sign In or Register to comment.