"is overlapping" I don't understand how it work

Discussion and feedback on Construct 2

Post » Sat Aug 17, 2013 11:30 am

Hi,

I start learning C2 about 2 weeks ago, and i found this problem yesterday. Can someone explain me why work different? I can't understand how the order of factors change the result in "is overlapping".

ERROR

Result: (Always subtract 2)
TextDebug: 5
TxtWin: 3

OK

Result: (Always subtract 1)
TextDebug: 5
TxtWin: 4


Thanks
B
10
S
5
G
1
Posts: 26
Reputation: 1,452

Post » Sat Aug 17, 2013 1:51 pm

You don't really need the "every 0.1" event, or the "for"..

"Overlapping" checks if an object is over another object. While it is, the event keeps repeating. For instance, try creating 2 new objects and test what happens when you have a variable add 1 while one object is overlapping another. The variable will trigger every tick.

There's a "on collision with" event that triggers just once when something collides with another object.
B
122
S
42
G
40
Posts: 846
Reputation: 27,994


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests