Two sprites overlap - I only want score + 1

Get help using Construct 2

Post » Sat Mar 16, 2013 5:30 pm

Hello.

Is there a way where I can count only one score if two sprites overlap one another?

EX: I got two sprites, and I got a touch event, and if one of the sprites touch/ overlap the other sprite, and I tell the program to add 1 to score if they overlap, and stay overlapping... but it just keeps adding 1 to score every tick. Is there a way I can stop that from happening?

Thanks for the help.GameThirsty2013-03-16 17:31:45
B
15
S
6
Posts: 348
Reputation: 2,558

Post » Sat Mar 16, 2013 5:45 pm

"On overlap" should only fire once whereas "is overlapping" will be true as long as they overlap. Which are you using?
B
20
S
6
G
2
Posts: 157
Reputation: 3,109

Post » Sat Mar 16, 2013 5:47 pm

I am using is overlapping. Where do I find "On overlap".
Thanks for the help.GameThirsty2013-03-16 17:48:49
B
15
S
6
Posts: 348
Reputation: 2,558

Post » Sat Mar 16, 2013 5:56 pm

You need to use "on collision" , as this only triggers once...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Sat Mar 16, 2013 6:03 pm

[QUOTE=Pixel perfick] You need to use "on collision" , as this only triggers once...[/QUOTE]

Yeah I found that out, thanks for all the help.
B
15
S
6
Posts: 348
Reputation: 2,558


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 29 guests