Strafe

Get help using Construct 2

Post » Sat Aug 04, 2012 6:36 am

Yeah, right now I am not using the mouse to control. I'll try it that way and see. Thanks.

I was thinking of having a strafe left and strafe right button, but this might be better :)
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Sat Aug 04, 2012 6:39 am

The reason being is chopper can spin around as fast as you can move the mouse. Thank you though, this was all very helpful
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Sat Aug 04, 2012 6:48 am

If you do decide to use the mouse I think the best way to do it would be to make the helicopter move simply camera-relative.. (where pressing up/down/left/right will always move the helicopter in that direction relative to the screen, regardless of the helicopters angle)


Also, you can smooth out and limit the rotational speed in a similar way you smooth out directions and limit their move speed.

Instead of setting the heli's angle to the mouse, set a variable 'targetangle' to the mouse... and have the heli.angle move towards that gradually using one of ..many.. methods..
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Sat Aug 04, 2012 6:57 am

Awesome, thanks so much :)
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Previous

Return to How do I....?

Who is online

Users browsing this forum: YoHoho and 14 guests