How do I slow down collision detection?

Get help using Construct 2

Post » Wed Jan 27, 2016 8:53 pm

Is there any way to slow down collision detection in C2?

The reason I ask is because I have an animated sprite that triggers a collision with the 'player' every time the frame changes. Can I slow this down in any way?
B
14
S
4
G
1
Posts: 78
Reputation: 1,610

Post » Wed Jan 27, 2016 9:32 pm

planetserve wrote:Is there any way to slow down collision detection in C2?

The reason I ask is because I have an animated sprite that triggers a collision with the 'player' every time the frame changes. Can I slow this down in any way?


This is why the tutorials from Ashley recommend using a single frame dummy sprite for collisions and behaviors and pinning the animations to this sprite.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
75
Posts: 5,149
Reputation: 53,203

Post » Wed Jan 27, 2016 9:50 pm

Yeah, so if I use a dummy sprite pinned to the 'player', sprite collisions will not trigger multiple times when an external animated sprite touches it?
B
14
S
4
G
1
Posts: 78
Reputation: 1,610

Post » Wed Jan 27, 2016 9:54 pm

Basically
A collision triggers when the collision polygon of one object overlaps the collision polygon of another object..

Your animation frames probably have different polygons..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Jan 28, 2016 5:46 pm

Thanks @LittleStain, yeah, thanks, I understand that.
B
14
S
4
G
1
Posts: 78
Reputation: 1,610


Return to How do I....?

Who is online

Users browsing this forum: Carlafnt, imhotep22, Monkin8r, rollyzz, scitana, Silviu and 8 guests