Score based on overlap

Get help using Construct 2

Post » Thu Dec 06, 2012 1:38 pm

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.
B
7
S
3
G
3
Posts: 22
Reputation: 2,385

Post » Fri Dec 07, 2012 5:48 am

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.
B
4
Posts: 15
Reputation: 330

Post » Fri Dec 07, 2012 12:50 pm

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?

JH12012-12-07 13:15:46
B
7
S
3
G
3
Posts: 22
Reputation: 2,385


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, MACPK, nicklowkcmagic, OddConfection and 22 guests