Disable collision for Physics Objects

Get help using Construct 2

Post » Wed Jan 04, 2012 10:48 pm

Hello.
Let's say I have three objects in my layout:
a Player, which has by Physics and Platform behaviors, and has his collision mask set to Bounding Box.
a Ball, which is only affected by Physics and has his collision mask set to Circle.
wall, also only affected by Physics and that has his collision mask set to Bounding Box.

I'd like both of my Player and Ball objects to collide with the wall, but I don't want them to collide with each other. Is it (yet) possible?
B
7
S
3
G
3
Posts: 26
Reputation: 1,652

Post » Thu Jan 05, 2012 12:02 am

There's no way that I'm aware of to do that, so I'd say it is indeed not possible.

Also, it is usualy not recommanded to add platform AND physic behaviors to the same object.
Also do you absolutely need physics ?

You could check the how do I FAQ there are examples of how to make objects push other objects and stuff like that simulating a physic behavior without the use of the actual behavior.Kyatric2012-01-05 00:02:44
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,805

Post » Thu Jan 05, 2012 12:22 am

Big picture, big picture, just tell us about your game, or the mecanics you want to implement. Or maybe you're just testing.
Sometimes seeing the big picture can help find workarounds
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Jan 05, 2012 12:26 am

[QUOTE=Morhaus]I'd like both of my Player and Ball objects to collide with the wall, but I don't want them to collide with each other.[/QUOTE]

If this is only what you want, than it's quite easy.
download
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Thu Jan 05, 2012 12:35 am

@Noga: indeed. Good thinking !
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,805

Post » Thu Jan 05, 2012 6:54 pm

Hello. Thanks for your example, but that's not exactly what I meant, so I'll try to describe my thought :
I'd like to control the player behavior with Physics actions, like Impulse, and Platform behavior, but I don't want it to interact with any other Physic object.

Anyway, I'll try with the custom movement behavior :) Morhaus2012-01-05 18:54:38
B
7
S
3
G
3
Posts: 26
Reputation: 1,652

Post » Thu Jan 05, 2012 7:40 pm

Some example of multiple physics layer :
http://dl.dropbox.com/u/54394996/dl/layers.capx

But that's quite annoying to do...

An improved example :
http://dl.dropbox.com/u/54394996/dl/layers2.capx
http://dl.dropbox.com/u/54394996/layers2/index.html
Much more effective :)

Please tell me what you think about it, and how I could make it even better :)Morhaus2012-01-05 20:25:24
B
7
S
3
G
3
Posts: 26
Reputation: 1,652

Post » Fri Jan 06, 2012 1:18 am

[QUOTE=Morhaus]Please tell me what you think about it, and how I could make it even better :)[/QUOTE]
It looks good, I don't see any problem with that, or I don't know what you're trying to do.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Wed May 16, 2012 10:17 pm

Very cool. Thanks for the idea. I definitely needed that.
B
2
Posts: 5
Reputation: 310

Post » Wed May 16, 2012 10:44 pm

I do not understand, this is what you need?
http://dl.dropbox.com/u/12633239/disable-collision.capx
B
17
S
3
G
1
Posts: 28
Reputation: 1,763

Next

Return to How do I....?

Who is online

Users browsing this forum: Callan S, getplay, Kagubro and 28 guests