0 Gravity bullet physics

Get help using Construct 2

Post » Mon Mar 18, 2013 12:46 am

Hello I'm making a top down space shooter But I'm stuck on the physics of the bullets i want the ships speed to control the speed of the bullet so the faster the ship is going the faster the bullets get projected... Any help is much appreciated!
B
3
Posts: 3
Reputation: 281

Post » Mon Mar 18, 2013 12:47 am

Set bullet speed to Ship.Speed+20 ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Mon Mar 18, 2013 1:26 am

Thanks i did player.CustomMovement.Speed+20 works good but when the ship is faceing the opposite direction of the way its traveling the bullets shoot faster
B
3
Posts: 3
Reputation: 281

Post » Mon Mar 18, 2013 1:33 am

You could find the angle ... and change the action depending on the result

Example ... If the ship is in opposite direction ... set bullet speed to .
player.CustomMovement.Speed-20

and if it's in the normal direction

player.CustomMovement.Speed+20

Cheers ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Mon Mar 18, 2013 2:17 am

hmm I'm not sure how to go about doing that
B
3
Posts: 3
Reputation: 281


Return to How do I....?

Who is online

Users browsing this forum: heliogame, Vodakman and 27 guests