Bullet direction "memory"

Just started using Construct 2? Post your questions here

Post » Sat Sep 06, 2014 8:59 pm

Hi,

i have trouble with bullet direction.

All bullets change direction,
I shot 10 bullet on right side press A and cast a couple of another bullets
on left side but first 10 change direction on left to. After press D
and first 10, second couple and new bullets changed ALL direction on right...

How can I fix this, when cast a new bullet I want older not to be changed?

:?
You do not have the required permissions to view the files attached to this post.
B
6
S
1
Posts: 34
Reputation: 474

Post » Sun Sep 07, 2014 12:19 am

Remove the Set angle to 0 degrees, and instead of having System create the object of the bullet, set it so that the Player object spawns the bullet. It should then travel from the player and their facing direction.
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008

Post » Sun Sep 07, 2014 9:13 am

I do that but again have problem...
T80 going well but bullet always going on right side...
And if I put action when letter A pressed (bullet0001 change angle -180) all bullets change direction on left.
How to avoid that "memory"?
You do not have the required permissions to view the files attached to this post.
B
6
S
1
Posts: 34
Reputation: 474

Post » Sun Sep 07, 2014 11:20 am

Hmm... can you please upload your .capx and I'll take a look at your events and try and get it working for you, :).
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008

Post » Sun Sep 07, 2014 11:23 am

No event picks any jullet for the changing direction. So all are affected.
I suggests to set the angle in the same event the bullet is created.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Mon Sep 08, 2014 9:19 pm

This is all code...

Does 8 direction behaviors can be problem?
You do not have the required permissions to view the files attached to this post.
B
6
S
1
Posts: 34
Reputation: 474

Post » Thu Sep 11, 2014 2:13 pm

Hi there. Is there a reason you are using 'set mirrored' and 'set not mirrored' on the bullet? Is there any reason to change the bullets direction in flight?

If not, I would get rid of set mirrored and not mirrored for the bullet. As you spawn it from T80 it should already face the right direction.
Intermediate level Construct 2 developer, looking to build up my portfolio : https://seriouslycrunchy.itch.io/

Current projects : Bite Sized Game Development, please have a look at my tutorials and comment!

I also write for http://moonbooks.net/, please come and check us out!

Follow me on twitter! @SrslyCrunchy I'm always looking for games or templates to highlight, use the hashtag #madeinconstruct !
B
15
S
7
Posts: 52
Reputation: 3,076

Post » Thu Sep 11, 2014 10:29 pm

A possible solution
You do not have the required permissions to view the files attached to this post.
B
21
S
8
G
6
Posts: 177
Reputation: 8,134

Post » Sun Sep 14, 2014 3:14 pm

Yesterday I deleted all and start from zero, now it's work... -,-
But I must watch much more tutorial.

Thank you all for you time and help!
B
6
S
1
Posts: 34
Reputation: 474


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests