Collisions with Particle System

Get help using Construct 2

Post » Sun Jan 12, 2014 8:58 pm

By default just about all objects can be on the receiving end of a collision using its bounding box, but that requires using sprite as the initiator, and will only work on the emitter if used on particles.
The particles themselves have nothing to collide with, all bark, no bite.
Image ImageImage
B
168
S
50
G
164
Posts: 8,228
Reputation: 105,575

Post » Sun Jan 12, 2014 9:13 pm

https://dl.dropboxusercontent.com/u/143636437/sprite%20particle%20collision/index.html

sprite (square) loops through its frames (colours) on collision with particles.[
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Sun Jan 12, 2014 10:21 pm

Ok, well that's what we call a depreciated "feature".;{)
Anyway the intent was always the fastest possible, which means no collisions. Been like that since CC.
Image ImageImage
B
168
S
50
G
164
Posts: 8,228
Reputation: 105,575

Post » Mon Jan 13, 2014 12:11 am

Thanks, RamPackWobble.
That's exactly what i ment. I ued old release of C2, and it works fine, as my own example. But some people here, seriously, some peole are a bit annoying. How couldn't you figure out what is hollow mask? When you start playing my example, you can clearly see sharacter, swords, and sometimes falling objects, looking like demonic heads. I'm sure everyone, even with brain issues can at least connect this crap with it's name.
Anyway, thanks for info, etc.
Greetings,
Rey
B
9
S
2
Posts: 9
Reputation: 893

Post » Mon Jan 13, 2014 1:01 am

If you can find better help somewhere else you are welcome to go there, but we certainly don't refer to others here like you just did.newt2014-01-13 01:02:11
Image ImageImage
B
168
S
50
G
164
Posts: 8,228
Reputation: 105,575

Post » Mon Jan 13, 2014 6:18 am

People, please..   

Do remember that not all of us are English native, (or even those who are, would be capable to read/write proper English, but that's totally different subject ) so there's plenty of room for misunderstanding.

For the 'hollow mask' .. one has to first want to play the game long enough to see even one drop. Luckily it's the first one (only kind?) so it does appear on decent time. I kinda like the way the visual effect works...

Occasionally it could indeed to be nice to be able to detect selected object hitting some cloud like visual effect with out any designer inserted extra hidden support sprites.

But I do see the point of not making it so. This kind of cloud can be made of thousands of particles and the huge amount of collision checks would kill the entire system performance even when those collisions weren't really needed.

So (as a coder).. I'd recommend not to trust any neat undocumented features or side effects that's not explicitly mentioned on manuals (or developers) since this program is still on development and things can and will change over time..
Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Mon Jan 13, 2014 7:30 am

Both Newt and LittleStain are two of the most helpful people you will find on any forum. They both know a heck of a lot more about C2 programming than I do.

I don't know if the particle collision was never intended to be there and has now been removed or if there is just some bug that has come to life - I hope it is just a bug but then again if particles can be speeded up/ generally improved by removing collisions then that would probably be for the better (after all their main purpose is visual effect).

I do know that sometime it is difficult to sometimes get ideas, meaning and intent across in a written forum.

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Mon Jan 13, 2014 8:07 am

To @MrReynevan2

You might try something like this tutorial. It seems quite simple and should do what you were looking for. Of course, you'll have to make it invisible, stick the orb to the player and size it similar the visual effect used.

https://www.scirra.com/tutorials/291/pick-every-object-within-range
Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Mon Jan 13, 2014 8:08 am

@MrReynevan2

You must be right, I must have serious brain issues.
I come on this forum just about every day trying to help people like you, who don't appreciate me taking the time and or trouble.
I'm not sure I agree with the annoying part yet, but I'm sure you can explain that in greater detail (Or is my brain just too small to understand?)

@RamPackWobble

Don't sell yourself short. You come up with example capx's in no time and they are usually spot-on. You might still be discovering new and sometimes better ways to do things, but so is everyone. I really appreciate what you do for this community.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Previous

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 10 guests