Optimise collision checking

Get help using Construct 2

Post » Sun Dec 08, 2013 2:06 am

i read that the best way to optimise collision checking is

by excluding/filtering objects or by doing a every .. seconds and putting the filtering events on top before the collision check

but collision checking is a trigger, so is always on top,

should i put the collision checks in a subevent?

im just confused, any tips, help?
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Sun Dec 08, 2013 2:18 am

I think what you read was referring to is the 'is overlapping' condition, which isn't a trigger, you can place it below other conditions.

but for the 'on collision' trigger, you can work around the way it forces itself to the top by just making it a sub event to a blank event.. i've done it a few times and i've not noticed any bugs.keepee2013-12-08 02:18:50
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sun Dec 08, 2013 12:10 pm

Yes, you can put them in subevents to make sure it only does the collision check if the parent events are true.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Sun Dec 08, 2013 5:02 pm

okey, thanks guys
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052


Return to How do I....?

Who is online

Users browsing this forum: JoyfulDreamer, StillSarah and 24 guests