How do I resolve shooting?

Get help using Construct 2

Post » Fri May 18, 2018 1:40 pm

now is all ok!!!
but when have collision bullet on zombie... zombie change animation and at the end he destroy.. all correctly.. just a small problem..
zombie rest "solid" instead he are destroyed... and i no want...
actually set is 1 shoot 1 kill what i do for let bullet trepassing zombie???
at moment every shoot go on collider vs sprite until he stop th animation
tnk and sorry for my bad english
B
5
Posts: 26
Reputation: 277

Post » Fri May 18, 2018 8:09 pm

Hello,
I don't think I fully understand what you're trying to achieve

Do you want the bullet to be destroyed the moment he hits the zombie?
Or do you want to let the bullet keep on his track even though he's hitting multiply zombies?

Does your bullet have a solid behavior?
Image
If I helped you, feel free to leave a tip :)
B
9
S
2
Posts: 25
Reputation: 540

Post » Sat May 19, 2018 7:11 am

sorry i try to explayn best..
when my sprite shot a bullet destroy a zombie ok??? but zombie before being destroyed do an animation... a dead animation ok??? when anination is on play... if i shoot.. my bullet go on collision whit zombie... and no whant.. because if i need 1 shot for destroy it why bullet have active a collision whit zombie?

i hope now i speack better
B
5
Posts: 26
Reputation: 277

Post » Sat May 19, 2018 7:32 am

What is your native language?
It may be easier to understand you if you use Google Translate.
B
19
S
9
G
158
Posts: 2,386
Reputation: 84,399

Post » Sat May 19, 2018 7:38 am

this is google tranlation
when the zombie's points of life are at zero part animation that dies with the flash effect, after the animation the zombie disappears with a destroy effect, only during the animation the shots do not go beyond the zombie
B
5
Posts: 26
Reputation: 277

Post » Sat May 19, 2018 7:43 am

i try now whit set collision disable but no is good zombie falling down from the plattform
B
5
Posts: 26
Reputation: 277

Post » Sat May 19, 2018 8:23 am

Ok.. If I understand you correctly, the first bullet kills the zombie. Then the zombie starts playing "Dead" animation. If you shoot again, the second bullet should fly through the zombie (not collide with it). Is this correct?

You can disable collisions after the first bullet and disable Platform behavior for the zombie.

Or you can check if animation "Dead" is playing on bullet collision:

Bullet on collision with Zombie:
and Zombie animation "Dead" NOT playing (right-click and invert this condition)
...Bullet destroy
...Zombie start "Dead" animation
...Zombie set collisions disabled
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,386
Reputation: 84,399

Post » Mon May 21, 2018 7:27 pm

Message: urkokan can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
sorry for answering after all this time but commitments have taken me away from the pc
I tried your solution and I must say that it works .. only that the zombie falls from the platform even if the platform is solid
zombie and plattform behavior have solid

https://imgur.com/a/8cVkui2
B
5
Posts: 26
Reputation: 277

Post » Tue May 22, 2018 3:12 am

Did you disable both collisions and Platform behavior?


If this doesn't work, then don't disable anything and use my second solution from the comment above - ignore collision with bullet if Dead animation is already playing.
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,386
Reputation: 84,399

Post » Tue May 22, 2018 6:08 am

it is a solution ... but it does not work properly ... because now when the "dead" animation starts, the bullet goes through all the zombies even to those behind ... while it should hit those behind and not those who are " dead animation "
B
5
Posts: 26
Reputation: 277

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests