helicopter move

Get help using Construct 2

Post » Mon Feb 11, 2013 8:54 pm

Hi guys,
Can anyone help me?

I'm not able to do :(

I wanted make an enemy to stay flying and following the player like a helicopter.

The helicopter shoots toward the player, but the shot does not follow this player.

The helicopter position changes according to the position of the player.

Example: http://hugoluigi.com/helicopter.gif

Does anyone have any idea how to do this?
B
21
S
4
G
2
Posts: 96
Reputation: 2,392

Post » Mon Feb 11, 2013 10:07 pm

Check out my post here:

http://www.scirra.com/forum/easy-object-toward-cursor_topic62801.html

Instead of moving towards the mouse cursor though, you want to change the part in the .capx example, and replace mouse.x with player.x
and mouse.y with player.y -200 (the -200 will keep the helicopter always flying above the player instead of moving directly to its location)

then you can play with the movement speed to determine how fast the helicopter moves.

B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Feb 12, 2013 5:43 pm

works!

Thanks,justifun
B
21
S
4
G
2
Posts: 96
Reputation: 2,392


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, farfetchd83, mjj1990 and 4 guests