X Is overlapping X

Get help using Construct 2

Post » Thu Aug 23, 2012 4:30 pm

So, the problem is how to make collision between the same objects?


This way works fine for 2-3 objects, but fails when there is more.

.capx

Can anyone help me?
B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Post » Thu Aug 23, 2012 4:54 pm

Hey Vlad,

That reads as: Whenever a zombie is on top of another one, pick the zombie furthest away from the player and then change its vector x.

Is this what you want to happen when zombies collide with each other?

You could use: Zombie - On collision with - Zombie: What you would like them to do.GenkiGenga2012-08-23 16:55:39
ImageImage
B
74
S
17
G
6
Posts: 1,039
Reputation: 10,605

Post » Thu Aug 23, 2012 5:03 pm

[QUOTE=GenkiGenga] Hey Vlad,

That reads as: Whenever a zombie is on top of another one, pick the zombie furthest away from the player and then change its vector x.

Is this what you want to happen when zombies collide with each other?

You could use: Zombie - On collision with - Zombie: What you would like them to do.[/QUOTE]

I want them not to pass through each other.

When I'm using On collision and way from .capx (instead of overlapping) it works only 1 time. Then zombie goes into zombie :D
B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Post » Thu Aug 23, 2012 8:33 pm

up
B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Post » Thu Aug 23, 2012 9:13 pm

Not sure exactly what you want, but I'd look into the 'pick nth instance' condition.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Thu Aug 23, 2012 10:12 pm

Is this closer to what you were wanting to do?
https://dl.dropbox.com/u/22615804/collision_edit.capxinkBot2012-08-23 22:13:27
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Fri Aug 24, 2012 11:01 am

[QUOTE=sqiddster] Not sure exactly what you want, but I'd look into the 'pick nth instance' condition. [/QUOTE]

Damn my bad English

I want them not to do like this:


[QUOTE=inkBot] Is this closer to what you were wanting to do?
https://dl.dropbox.com/u/22615804/collision_edit.capx[/QUOTE]

Looks like that's what I needVladoss2012-08-24 11:02:54
B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Post » Fri Aug 24, 2012 9:49 pm

Oh, I know how to explain what I want.
I think that everybody played source-based games (counter-strike source, team fortress 2 etc) and you might noticed that when you trying to walk into your teammate you are slowly getting out of him. That's what I meant.Vladoss2012-08-24 21:56:12
B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Post » Sat Aug 25, 2012 7:12 am

Hows this?

Link removed...

It doesnt push them out of one another - instead it just keeps them apart. Its much simpler and pretty much the same thing.GenkiGenga2012-08-25 10:58:48
ImageImage
B
74
S
17
G
6
Posts: 1,039
Reputation: 10,605

Post » Sat Aug 25, 2012 10:15 am

[QUOTE=GenkiGenga] Hows this?

https://dl.dropbox.com/u/13312935/Howsthis.capx

It doesnt push them out of one another - instead it just keeps them apart. Its much simpler and pretty much the same thing.[/QUOTE]

I'm getting ERROR while opening this capx. It can't find some sprites.

There is no Sprites and Animation folders in your capx
B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Next

Return to How do I....?

Who is online

Users browsing this forum: Matthew de, nexlove and 26 guests