Enemies overlap. Blood is on top.

Get help using Construct 2

Post » Thu Jan 17, 2013 7:28 pm

Problem 1

I want my enemies to stop overlapping each other. i have tried everything i can... I am a beginner so i am not good at this :/

the enemy has solid and bullet behavior but the solid behavior doesn't stop them from overlapping. what can i do?

Problem 2

When i shoot enemies, there comes blood out of them, and when i walk on the blood it is on top of me. Sorry for asking so easy questions but as i said, i am a beginner so i don't know much yet.

Thanks

Solved, problem was in the bullet behaviorsume2013-01-19 08:57:39
B
2
Posts: 6
Reputation: 312

Post » Thu Jan 17, 2013 8:14 pm

Maybe have an On Collision event with the Enemies for each other.

On Collision with Enemy -> go other direction.

If the enemies have the Bullet behavior you can have them bounce off each other.

As for the blood, you can do 2 things:

1) When you spawn the blood change the Z Order to be lower than the other sprites.

2) Spawn the blood on another Layer that is below the layer that the player/enemies is on.
B
13
S
4
G
3
Posts: 75
Reputation: 3,425

Post » Thu Jan 17, 2013 8:32 pm

1) You can remove collision with an event ... Set Collisions Enabled !
2) Try Ranger's technique , and if it don't work , provide the capx and we'll help you !

Cheers ! ( You can always call me with @Whiteclaws )
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Thu Jan 17, 2013 8:45 pm

I fixed the blood problem, thanks ranger!
The overlap thing didn't work sume2013-01-17 20:45:59
B
2
Posts: 6
Reputation: 312

Post » Thu Jan 17, 2013 10:35 pm

The enemies might be overlapping because their collision boxes are not boxes.

Open the collision box for the sprite and see what it looks like, its probably using the default "auto guess" shape. Try making it a box. Right click one of the points and chooose "Set to bounding box"
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Fri Jan 18, 2013 12:10 pm

Nope, they still overlap They can go through any solid object but not my main character.sume2013-01-18 12:24:18
B
2
Posts: 6
Reputation: 312


Return to How do I....?

Who is online

Users browsing this forum: Governador, tarek2, Thelegendvinny, Yahoo [Bot] and 19 guests