How do I spawn bullets, change directions and splat blood

Get help using Construct 2

Post » Sun May 24, 2015 1:54 pm

Hi,

- So I am trying my best to firstly make the bullet spawn on a layer or z order under the player and enemy but it does not work when I do this? Am I doing something wrong here?

- What code do I use to make the blood splatter using animations e.g. when a bullet collides with myself from the enemy.

- How I do I spawn bullets coming out from both sides on a straight line?
B
9
S
3
Posts: 103
Reputation: 1,043

Post » Sun May 24, 2015 4:16 pm

- bullet on created - bullet move to bottom

- Bullet on collision with player - Bullet spawn animation bloodspatter

- If you set the bullet angle to 180 it will go left, angle 0 it will go right..
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 May 24, 2015 4:58 pm

- bullet on created - bullet move to bottom = Working thanks!

- Bullet on collision with player - Bullet spawn animation bloodspatter = How do I defy as specific animation as all I can see is how to do it using frames?

- If you set the bullet angle to 180 it will go left, angle 0 it will go right = Tried this did'nt work it only shoots out at one angle at a time, how would I do it so it shoots from both 0 and 180 degrees at the same time?
B
9
S
3
Posts: 103
Reputation: 1,043

Post » Sun May 24, 2015 5:34 pm

Third point - you create two actions... one bullet going one way, one the other.
B
13
S
5
G
4
Posts: 139
Reputation: 2,586

Post » Sun May 24, 2015 5:35 pm

I did that, it did not work?
B
9
S
3
Posts: 103
Reputation: 1,043

Post » Sun May 24, 2015 5:39 pm

When you say two actions you mean events?
B
9
S
3
Posts: 103
Reputation: 1,043

Post » Sun May 24, 2015 6:05 pm

SomeT wrote:- bullet on created - bullet move to bottom = Working thanks!


np

SomeT wrote:- Bullet on collision with player - Bullet spawn animation bloodspatter = How do I defy as specific animation as all I can see is how to do it using frames?


add frames to create an animation.
Add another animation through the animation dialog.
repeat.

SomeT wrote:- If you set the bullet angle to 180 it will go left, angle 0 it will go right = Tried this did'nt work it only shoots out at one angle at a time, how would I do it so it shoots from both 0 and 180 degrees at the same time?


one bullet can only go one direction, solution?
Create two bullets, set one to go one direction and the other to go another direction.
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 May 24, 2015 8:43 pm

Ok so everything has been solved apart from: animation dialog where do I find this? Looked everywhere?
B
9
S
3
Posts: 103
Reputation: 1,043

Post » Sun May 24, 2015 8:49 pm

make sure your first action when bullet hits the character , it is not bullet>destroy that should be the last under spawnBlood <set bullet angle of motion 180 spawnblood set bullet angle of motion 0 then comes bullet destroy, C2 reads all events and condition from top to bottom, if you place bullet to be destroyed first then the rest of actions wont take place cause the bullet actor wont be in the screen anymore!


here is a blood splatter with bullet behavior Download

here is a blood splatter with physics Download
B
70
S
20
G
67
Posts: 1,316
Reputation: 42,305

Post » Sun May 24, 2015 9:09 pm

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

Next

Return to How do I....?

Who is online

Users browsing this forum: RetrocadeMedia and 1 guest