Creating a spread of projectiles

Get help using Construct 2

Post » Mon Feb 04, 2013 1:39 am

In my game, I have a feature where the player can hold down the mouse button and every second it is held down, they will gain a charge level (up to 5).

I'd like to create an arc of projectiles with the current angle of the player as the center of the spread. I've tried a lot of different ways, and this is the current, but it's not working well at all. It's a bit wordy to explain what I've done, so here's an image of the relevant events (in red boxes) along with some context.

edit: For some reason, the forum makes the "N" at the end of the URL lower case if I try to link or embed the image, so you'll have to copy/paste. Sorry.

http://i.imgur.com/5culoNK.png

Any other ideas?

Thanks!jmay19822013-02-04 01:45:27
B
3
Posts: 7
Reputation: 289

Post » Mon Feb 04, 2013 5:58 am

i've made an example for you, it works quite well i think, fires according to the player angle - reminds me of the wookie gun from battlefront 2 :3

gunspray capx (r117)

an image of most of the code in case you don't have r117
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Mon Feb 04, 2013 11:41 pm

[QUOTE=wretchedshark] i've made an example for you, it works quite well i think, fires according to the player angle - reminds me of the wookie gun from battlefront 2 :3

https://www.dropbox.com/s/lfl7wit7pdix35i/gunspray.capx%20[/QUOTE]

Yes, this works brilliantly! I was able to shorten it by using loops in each of those branches, but the concept is the same. Thanks man!
B
3
Posts: 7
Reputation: 289

Post » Tue Feb 05, 2013 12:10 am

@jmay1982 - i thought about loops after i made it haha, cause that is a lot of sheet space used for making bullets! glad i could help
B
14
S
6
G
2
Posts: 136
Reputation: 3,210


Return to How do I....?

Who is online

Users browsing this forum: Justin1967, Yahoo [Bot] and 23 guests