Small problem with physics objects/ object families

For questions about using Classic.

Post » Thu Mar 25, 2010 8:20 pm

Hello to all you super cool construct dudes.

I'm currently trying to make a platform game where pretty much most things have the physics behavior (awkward?).
I've ran into a few little problems however!

One of which is to do with small objects (weaponry/various small items) on the floor: I want them to be physics objects in the game world (can shoot them across floors/explosions can send them hurtling etc) but I want the player (also a phys object) to not collide with small objects on the floor, so the player won't be stumbling across all this tiny crap in the game world.

I can make an individual event for each small object to disable physics collisions with the player at the start of the layout. that would mean a shitload of events, one for each small item type. I'd sooner have one event for all small items.
So I tried out the "object families" feature, made a family "small item" and put a pistol and shotgun both into this family. I set the event for the player to disable collisions with the "small item" family but for some reason it just doesn't work. \(O o)/ it disables the collisions with the pistol, but not the shotgun. Everything is pretty much identical between the pistol and the shotgun except for a few phys variables (mass, friction etc).

I could just make an event for each one but I'd sooner figure this out, is there something I am missing about the object families?

thanks in advance!
B
1
G
2
Posts: 5
Reputation: 635

Post » Fri Mar 26, 2010 11:05 am

[quote="BUMRUSH3000":3ia448wn]So I tried out the "object families" feature, made a family "small item" and put a pistol and shotgun both into this family. I set the event for the player to disable collisions with the "small item" family but for some reason it just doesn't work. \(O o)/ it disables the collisions with the pistol, but not the shotgun. Everything is pretty much identical between the pistol and the shotgun except for a few phys variables (mass, friction etc). [/quote:3ia448wn]

Totally sounds like it should work. And I've tested it just now in a cap, and it appears to work fine. So my best guess is that there may be some tiny mistake in your cap (care to share?). Oh, and which version of Construct are you using anyway?
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Fri Mar 26, 2010 6:40 pm

Yeah I am the local "king of make everything in physics" just because I like to be difficult and annoying.

What you have done sounds like it should work as PixelRebirth said.

If it's not, then yes, send your cap file over to one or both of us to check it out. We won't share it around if you are worried about that.

Either that, or try making a new blank cap file quickly just to test the theory with a fresh cap. Sometimes I find this easier since there are less "things" to get in the way of solving the problem. Once that is working just try to emulate that into your proper cap.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests