How do I add points when sprite clicked, else subtract point

  • Hi there,

    I've been trying to accomplish the following:

    I want a player to click blocks: if he clicks a block with a certain colour, he scores, but if he clicks outside the block or on a block with the 'wrong' colour, points should be subtracted...

    I've been trying (boolean) instance variables, but can't seem to get the thing working.

    Actually I only want to know if a boolean instance variable is the way to go or are there other ways?

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi Rjan - boolean is for true false.

    It sounds like you need to do an event on mouse click / tap then nest a condition about whether the correct object was clicked - upscore if it was and downscore if it wasn't.

    If you upload a capx of what you're trying to do we could have a look at it.

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