How do I simulate Rocket like Physics?

Get help using Construct 2

Post » Tue Feb 17, 2015 11:33 pm

What I'm trying to do is basically make a rocket. The Rocket is activated (Thrusters) on touch and the rocket turns based on the touch position. I could use some help on what physic elements to use in order to simulate a rocket correctly. I've attached a capx to display my tremendous failure....
You do not have the required permissions to view the files attached to this post.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Tue Feb 17, 2015 11:42 pm

Just apply force at a specified angle when you touch the screen.
Angle(Rocket.X,Rocket.Y,Touch.X,Touch.Y) for moving rocket toward touch input
Angle(Rocket.X,Rocket.Y,Touch.X,Touch.Y)+180 for moving rocket in opposite direction from touch input.
Tomorrow I'll be home and if this doesn't work for you, I'll try something else :)
B
11
S
3
G
1
Posts: 91
Reputation: 997

Post » Wed Feb 18, 2015 9:08 am

Thanks for your help! I have improved the simulation and it does seem to act more like a rocket. Although I did not understand your second instruction having to do with the +180. Could you please explain that more? Is it also possible to make the rocket more controlled. Currently it's quite controlled but putting higher force tends to make it erratic. I'm trying to simulate it so that the rocket doesn't go haywire when it flies horizontal.

Here's a Capx
You do not have the required permissions to view the files attached to this post.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300


Post » Wed Feb 18, 2015 2:59 pm

Is this what you want?

I added a pin behaviour to your exhaust so it always follows the rocket, set the gravity to 0 and removed that angle(rocket.x,rocket.y,touch.x,touch.y)+180 because it was useless.

When I told you to use that expression for your game, it was intended for making the rocket escape from you finger.

Here's the .capx
Rocket.capx
Remember to not give up! It took me 120 hours of development to understand how to use Construct2 Well :)
You do not have the required permissions to view the files attached to this post.
Last edited by BouncyTrip on Wed Feb 18, 2015 6:32 pm, edited 2 times in total.
B
11
S
3
G
1
Posts: 91
Reputation: 997

Post » Wed Feb 18, 2015 3:05 pm

Like BouncyTrip said do not give up I am still learning new thing day by day
B
257
S
42
G
15
Posts: 1,991
Reputation: 41,411

Post » Wed Feb 18, 2015 3:20 pm

I have only changed the smoke part from BouncyTrip that is all his work not mine
You do not have the required permissions to view the files attached to this post.
B
257
S
42
G
15
Posts: 1,991
Reputation: 41,411

Post » Wed Feb 18, 2015 8:37 pm

Wow, this is awesome. Thank you so much guys. I'll keep working on it now that I have a better idea on what I'm doing.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Wed Feb 18, 2015 8:45 pm

Usman Haq most welcome dear friend we are here to help if we can
B
257
S
42
G
15
Posts: 1,991
Reputation: 41,411


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Google [Bot] and 0 guests