Small problem with physics objects/ object families

This forum is currently in read-only mode.
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • 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!

  • 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).

    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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)