Inconsistent Collision Detection

Get help using Construct 2

Post » Wed Feb 12, 2014 5:05 am

So I have two circular sprites in a physics based game I'm working on. Sometimes collisions between them work as expected. Other times the collision will be detected when there are about 64 pixels between them. I've tried changing the collision masks, but that doesn't seem to change anything.

Any idea what's going on? Thanks!
B
10
S
4
G
3
Posts: 103
Reputation: 2,984

Post » Wed Feb 12, 2014 5:17 am

Are you changing the sprite collision mask or the Physics collision mask? The physics properties can specify Circle.
ImageImageImage
B
71
S
21
G
232
Posts: 3,696
Reputation: 129,868

Post » Wed Feb 12, 2014 6:35 am

[QUOTE=blackhornet] Are you changing the sprite collision mask or the Physics collision mask? The physics properties can specify Circle.[/QUOTE]
I'm changing the physics collision mask.
B
10
S
4
G
3
Posts: 103
Reputation: 2,984

Post » Wed Feb 12, 2014 8:11 am

Are you mixing physics with other behaviours (bullet/8 direction/etc) ?

Can you post capx ?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Wed Feb 12, 2014 9:12 am

[QUOTE=RamPackWobble] Are you mixing physics with other behaviours (bullet/8 direction/etc) ?

Can you post capx ?[/QUOTE]
No such mixing.

capx
B
10
S
4
G
3
Posts: 103
Reputation: 2,984

Post » Wed Feb 12, 2014 3:50 pm

You are mixing behaviours. You generally can't mix anything with Physics and expect things to work.
ImageImageImage
B
71
S
21
G
232
Posts: 3,696
Reputation: 129,868

Post » Wed Feb 12, 2014 8:27 pm

[QUOTE=blackhornet] You are mixing behaviours. You generally can't mix anything with Physics and expect things to work.[/QUOTE] Ah, so no go on Sine behavior then? Gravitation is physics-related so I assume that's fine.
B
10
S
4
G
3
Posts: 103
Reputation: 2,984

Post » Wed Feb 12, 2014 11:37 pm

No. The Physics behaviour is standalone. It doesn't play well with ANY other motion-based behaviour.
ImageImageImage
B
71
S
21
G
232
Posts: 3,696
Reputation: 129,868

Post » Thu Feb 13, 2014 4:03 am

[QUOTE=blackhornet] No. The Physics behaviour is standalone. It doesn't play well with ANY other motion-based behaviour.[/QUOTE] Okay, thanks for the help!
B
10
S
4
G
3
Posts: 103
Reputation: 2,984


Return to How do I....?

Who is online

Users browsing this forum: sean080, Yahoo [Bot] and 18 guests