Bullet Behaviour

Get help using Construct 2

Post » Sun Nov 18, 2012 8:51 pm

I could do this by setting the y value but I like the gravity/speed parameters of the bullet behaviour.

For my current project I don't want the "bullet" to face the direction it's moving all the time. I want it to go up and face up, but come down and still face up.

Is there a way to do this with bullets?
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Sun Nov 18, 2012 10:10 pm

When your bullet is selected, in the properties menu on the left there's an option to Set Angle to no.

Once the bullet is created you can set the bullet's angle to the angle of movement (in the firing event eg. Set bullet angle to cannon.angle); after that it should stay facing that same angle.
B
9
S
2
G
3
Posts: 75
Reputation: 1,964

Post » Sun Nov 18, 2012 10:25 pm

I'm not sure if we're understanding each other. So here's a rough capx:

https://dl.dropbox.com/u/10196246/Bullet.capx

Click on the green box to make the bullets come out the top. They go up great with the red part facing upwards, but they turn around when coming down. I want the red part to be always at the top.
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Sun Nov 18, 2012 10:34 pm

Change it to Bullett > Set angle to 270 degrees
Add another action with Bullet > Set Bullet angle of motion to 270 degrees

Also disable Set Angle in the Bullet's properties.
B
9
S
2
G
3
Posts: 75
Reputation: 1,964

Post » Mon Nov 19, 2012 1:14 am

Perfect. THANK YOU!
B
19
S
3
G
2
Posts: 212
Reputation: 4,011


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, zenox98 and 15 guests