How do I create multiple working cannons in different angles

Get help using Construct 2

Post » Tue Jul 29, 2014 10:47 pm

So I could'nt really explain better in the subject title.
I am working on a platformer, a lá super meat boy. What I wanted to do was create multiple working cannons within one layout. (Like the shooting spinners in super meat boy).

In the picture is shown how I tried it. It works (kind of), but if I have two cannons in different angles, the bullet isn't doing what I want it to do.

I know why it doesn't do what I want,, there are mistakes in the events, but I don't know how to do it better and properly..

If anything is unclear just ask, I really would like to know how to properly do this!
You do not have the required permissions to view the files attached to this post.
B
12
S
1
Posts: 28
Reputation: 978

Post » Wed Jul 30, 2014 2:08 am

Try adding 'for each' in system and assign it to Cannon. Also move the spawning event to the top of action.
ImageImage
B
115
S
51
G
24
Posts: 790
Reputation: 23,505

Post » Wed Jul 30, 2014 2:20 am

Your event is setting the bullets angle "set bullet angle of motion to Cannon"
Maybe disable it and in the bullets behaviours try changing "Set angle" to yes.

Just an idea.
B
17
S
3
Posts: 37
Reputation: 935

Post » Wed Jul 30, 2014 2:42 am

What I did, and I think I got the result you're after, is I moved the spawn action above the bullet setting actions, and I made sure "set angle" was set to no..
B
88
S
43
G
71
Posts: 601
Reputation: 43,669

Post » Sun Aug 17, 2014 9:23 pm

Thanks! Setting the spawn action in front did the job :)
B
12
S
1
Posts: 28
Reputation: 978

Post » Mon Aug 18, 2014 12:26 am

Okay, the problem now is that every bullet is 'shot' at the same time, while I would like it to be able to be different for all of them. I tried it with an instance valuable but it didn't quite work out.. any ideas?
B
12
S
1
Posts: 28
Reputation: 978


Return to How do I....?

Who is online

Users browsing this forum: dop2000, hao102a2 and 34 guests