How do I get particles to not go through solids?

Get help using Construct 2

Post » Fri Oct 10, 2014 5:11 pm

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?
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Post » Fri Oct 10, 2014 6:20 pm

If it is a problem you should make your own particle system using Sprites.
B
34
S
9
G
3
Posts: 517
Reputation: 5,226

Post » Fri Oct 10, 2014 6:32 pm

@katala, oh ok so there is no such solution using particles?
B
13
S
5
G
1
Posts: 119
Reputation: 2,292

Post » Fri Oct 10, 2014 6:37 pm

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.
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730

Post » Fri Oct 10, 2014 7:22 pm

"Solids or any particular object" is overlapping "Particles"...."Particles" Destroy :D
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Fri Oct 10, 2014 7:26 pm

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.
Developing Surolace, the survival role playing space game.

surolace-survival-role-playing-space-game_t116953
B
14
S
4
Posts: 303
Reputation: 1,730

Post » Fri Oct 10, 2014 9:07 pm

Man,it's many ways to kill Chupacabra.....
Trust me..:D
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Fri Oct 10, 2014 9:32 pm

Chupacabra 1...(Simplest way)


Possible.capx
You do not have the required permissions to view the files attached to this post.
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Fri Oct 10, 2014 9:48 pm

"Solids or any particular object" is overlapping "Particles"...."Particles" Destroy :D

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.
B
34
S
9
G
3
Posts: 517
Reputation: 5,226

Post » Fri Oct 10, 2014 10:24 pm

it does not matter what actually happens, but what the player sees... :twisted:
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Google [Bot] and 20 guests