Problem with score system

  • hey you boys/girls,

    I am new to construct 2 and i have a problem for making a score system for the game i'm making. My problem is: i want to make a score +1 when my animation is finished.

    What i have now is:

    Global number Score=0

    on Touch end : Sprite:stopAnimation

                   Set Animation frame to Sprite.AmimationFrame+1

    Sprite animation frame = 30:

                   system: add 1 to Score

    system every tick Score:

                   Set text to "Score:"Score

                   sprite: Stop Animation

    ps English is not my native language.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Could you post the capx file so we can see it in action? It's probably a simple mistake; maybe your animation has 30 frames, meaning the last frame is frame number 29 (because the first frame is 0, not 1!), so the "Sprite animation frame = 30" event never runs.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)