Score based on overlap

0 favourites
  • 3 posts
From the Asset Store
Advanced inventory mechanics for your RPG game (Array-based). Take Items, split them, pick up them, read the description
  • 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.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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="" border="0" />

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