How do I add points to score in real-time without looping?

0 favourites
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • You could do it as simply as this:

    [attachment=1:h5x6ztnj][/attachment:h5x6ztnj]

    but this would be updating the score every tick. Add some tracking variables and you get this. Maybe not much better

    [attachment=0:h5x6ztnj][/attachment:h5x6ztnj]

    Capx

    [attachment=2:h5x6ztnj][/attachment:h5x6ztnj]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could do it as simply as this:

    [attachment=0:2f3o1ndr][/attachment:2f3o1ndr]

    Thank you! This one worked exactly how I wanted.

    I appreciate everyone's help here!

  • > You could do it as simply as this:

    > [attachment=0:1tsr0qmx][/attachment:1tsr0qmx]

    >

    >

    Thank you! This one worked exactly how I wanted.

    I appreciate everyone's help here!

    Based on Lordshiva1948 's hard work

    edit: but I would still investigate ways of not having this do work every tick..

  • >

    > > You could do it as simply as this:

    > > [attachment=0:2af756px][/attachment:2af756px]

    > >

    > >

    >

    > Thank you! This one worked exactly how I wanted.

    > I appreciate everyone's help here!

    >

    Based on Lordshiva1948 's hard work

    edit: but I would still investigate ways of not having this do work every tick..

    Thank you for the advice. How can I tell between the two examples you gave that one is running every tick and the other one isn't?

  • The 'is overlapping' is still running every tick (by necessity) , whereas an 'on collision' is triggered. What you should try to do is minimize what is done every tick, which is what my second capx tries to do. Always remember all non triggered events on your event sheet are run every tick.. and try to minimize them.

  • The 'is overlapping' is still running every tick (by necessity) , whereas an 'on collision' is triggered. What you should try to do is minimize what is done every tick, which is what my second capx tries to do. Always remember all non triggered events on your event sheet are run every tick.. and try to minimize them.

    Thank you very much for all of your help.

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