How do I get particles to not go through solids?

0 favourites
  • 12 posts
From the Asset Store
Particles support animations, collisions, effects and etc.
  • I have a shotgun that sprays bullets and also little particles that make it look like more shot. The particles themselves do no damage to the enemies just add a lot for visual flair. I have had to remove the particles though because they fly through all walls and everything but now the shotgun blast is pretty boring.

    Is there a way to stop particles from going through solids or any particular objects?

  • If it is a problem you should make your own particle system using Sprites.

  • Katala, oh ok so there is no such solution using particles?

  • rought outline of how to make your own particle generator

    create a blank sprite called, uhh, generator or something.

    on every tick

    percentage chance qualifier

    -> spawn mysprite

    mysprite on create

    -> set random angle/speed/etc

    Now you can use the "bullet" behavior on mysprite to make it prevent going through objects flagged as solid.

  • "Solids or any particular object" is overlapping "Particles"...."Particles" Destroy

  • i'm not at a pc with C2 right now but is that possible? Solids only work with a few of the predefined behaviors and particles are not listed. Nor do I remember being able to set a specific sprite for particles, the sprite its self is the particle.

    Maybe I'm wrong. I'll have a looky-loo later.

  • Man,it's many ways to kill Chupacabra.....

    Trust me..

  • Chupacabra 1...(Simplest way)

    [attachment=0:hox5qrtt][/attachment:hox5qrtt]

  • [quote:aeqts2ir]"Solids or any particular object" is overlapping "Particles"...."Particles" Destroy

    That will destroy the whole particles object. I assume the goal was to destroy the individual particle one by one when hit and i'm pretty sure that isn't possible without using Sprites.

  • it does not matter what actually happens, but what the player sees...

  • Chupacabra 1...(Simplest way)

    [attachment=0:169o4ikf][/attachment:169o4ikf]

    nice I will check this out later. Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rought outline of how to make your own particle generator

    create a blank sprite called, uhh, generator or something.

    on every tick

    percentage chance qualifier

    -> spawn mysprite

    mysprite on create

    -> set random angle/speed/etc

    Now you can use the "bullet" behavior on mysprite to make it prevent going through objects flagged as solid.

    Ok thanks, that's a good idea. Didn't think about that

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