Keep bullets from changing angle after its set.

Get help using Construct 2

Post » Thu Aug 15, 2013 8:30 am

I have been using construct for a while and I am in the middle of creating my core gameplay for my project.
Everything has worked out for me so far(after a ton of trial and error obviously), except my ranged attacks.

I want the arrows to shoot at the "targeting" sprite which is placed at mouseX/Y upon clicking. I got this working but if i click again to shoot another arrow, the previous arrow(s) will change direction to the "targeting" sprite which has now moved to a different spot. It was sort of cool at first and maybe I will use that later once I know how I did it XP. but for now it is not what i need.

In short my question is: How do I keep previously released bullets from changing direction when I click somewhere else to release another.

Apologies for not uploading the project but something went wrong with that so i said screw it to trying again and decided maybe one of the construct wizzes would know what to do without the visual aid.
B
2
Posts: 2
Reputation: 154

Post » Thu Aug 15, 2013 8:40 am

Without seeing your capx I believe this to be the problem:

Try picking only the spawned arrow

You could do this with an arrow on created event or just use a subevent after the spawning.

Right now you are picking all instances of the arrow, so they all will set course to mouse.x,mouse.y
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 » Thu Aug 15, 2013 9:23 am

[QUOTE=LittleStain] Without seeing your capx I believe this to be the problem:

Try picking only the spawned arrow

You could do this with an arrow on created event or just use a subevent after the spawning.

Right now you are picking all instances of the arrow, so they all will set course to mouse.x,mouse.y[/QUOTE]
Frustration Gone. Thanks a ton for pointing that out.
B
2
Posts: 2
Reputation: 154


Return to How do I....?

Who is online

Users browsing this forum: mindragon73 and 27 guests