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
17
S
6
G
1
Posts: 83
Reputation: 1,895

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
134
S
30
G
86
Posts: 5,415
Reputation: 59,516

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
17
S
6
G
1
Posts: 83
Reputation: 1,895

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
17
S
6
G
1
Posts: 83
Reputation: 1,895


Return to How do I....?

Who is online

Users browsing this forum: asdtricky, Donald Cela, pmerineau, Yahoo [Bot], Yarfapet and 12 guests