Keep sprites from occupying same space?

Get help using Construct 2

Post » Sat Jan 04, 2014 4:59 pm

How do you keep 2 sprites from occupying the same space at the same time without using the solid behavior?
Image
B
20
S
4
Posts: 382
Reputation: 2,984

Post » Sat Jan 04, 2014 5:05 pm

Hi @PSI,

I just happen to read some stuff about boids in the forum, maybe this is what you're looking for? Maybe rexrainbow's pushout plugin will work?DuckfaceNinja2014-01-04 17:08:08
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Sat Jan 04, 2014 5:50 pm

The way your game is set up, I would choose to either set the collision polygon just around the feet or create a collision sprite at that point. I think you wouldn't mind your enemies overlapping as long as they are not completely occupying the same place. Using solid behaviour for the feet-sprite could work perfectly, but if you'd like a different solution you could check for distance and speed up or make the movement slower accordingly.
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

Post » Sun Jan 05, 2014 4:35 am

I already have the rectangular sprites that are also the collision rectangles. When I set them all to solid, they push each other around.
Image
B
20
S
4
Posts: 382
Reputation: 2,984


Return to How do I....?

Who is online

Users browsing this forum: antonajadah and 4 guests