Movement for my helicopter

Get help using Construct 2

Post » Tue Mar 13, 2012 7:59 pm

Hey guys, been trying to get into Construct 2, but can't seem to get this thing right with my helicopter.

It's mainly the "W" I'm having trouble with, moving towards the direction I'm tilting sort of.

Would appreciate any help if you can see what I'm aiming for:

Download capx

buffering2012-03-14 13:10:47
B
39
S
3
G
1
Posts: 7
Reputation: 3,076

Post » Wed Mar 14, 2012 9:09 am

Its allways a good idea to post your CAPX....makes it easier to help
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Mar 14, 2012 9:20 am

If you decide to use the physics behaviour, you can apply force at angle.

If the helicopter horizontal, is angle 0 then the W to Increase throttle should apply force towards self.angle-90 (i think)

This will apply the force helicopter-relative.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Wed Mar 14, 2012 1:11 pm

Updated my first post with a download link for the capx
B
39
S
3
G
1
Posts: 7
Reputation: 3,076

Post » Wed Mar 14, 2012 1:28 pm

OK, got it...

Change the event:
[code]
Keypress W: spr_player2: Apply Force -10 at Angle spr_player2-Angle + 90
[/code]

this should do what you request
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Mar 14, 2012 2:26 pm

Hey look at that, fantastic. Thanks. :)

Still trying to figure out if this type of movement is the way to do it.
The helicopter should somehow be able to turn around and fly the other way, not just constantly facing one side.

Made a quick video in 'Altitude' showing how it works there as an airplane.

Thanks for the help so far.

Video here
B
39
S
3
G
1
Posts: 7
Reputation: 3,076

Post » Wed Mar 14, 2012 2:40 pm

Are you talking about the trasition of the sprite when changing the direction from back to forward?
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Mar 14, 2012 2:48 pm

Yeah, but it might be weird since it's a helicopter and not an airplane.
B
39
S
3
G
1
Posts: 7
Reputation: 3,076

Post » Wed Mar 14, 2012 2:49 pm

I would render a transition animation which then has to be played when you mirror the sprite
B
42
S
19
G
12
Posts: 723
Reputation: 13,911


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests

cron