Score based on overlap

  • I'm trying to figure out how to keep score based on how many instances of an object are overlapping another object.

    I've tried:

    For Each + is overlapped > Add 1 to Score

    For Each (Ordered) + is overlapped > Add 1 to Score

    Object is overlapping > Toggle Instance Boolean

          Compare Boolean > Add 1 to Score

    All of these seem to work, except the score just keeps running up every tick once an instance is overlapping instead of just adding one to the current score.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had this too. You need to put the overlap check as a sub-event to something else. In mine, the user presses an OK button, and a sub-event to that is the overlap check.

  • Thanks for the response! This seems much more logical.

    It's somewhat inconsistent in it's count for some reason. Does this look right to you?

    <img src="http://i.imgur.com/Tc4kJ.jpg" border="0" />

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