Guided missiles

Get help using Construct 2

Post » Sat Jul 21, 2012 3:58 pm

Hi.. i am wondering. if there is a way have a guided fire shot..has anyone come across any behavior or plugins to fire a guided shot.
B
7
Posts: 28
Reputation: 781

Post » Sat Jul 21, 2012 4:03 pm

It's pretty easy to do with events, no need for plugins. But you'll have to explain in a bit more detail than that, there are many ways a projectile could be guided.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sat Jul 21, 2012 4:30 pm

[QUOTE=Nimtrix] It's pretty easy to do with events, no need for plugins. But you'll have to explain in a bit more detail than that, there are many ways a projectile could be guided.[/QUOTE]

i want to be able to lock my aim on an the object i want to shoot..and then when fired...the projectile should follow the locked object and destroy itself and the object on collision.. i am trying to make a capx..let's see if i can get it on my own...i will keep checking here though :pbarc0d3guy2012-07-21 16:33:08
B
7
Posts: 28
Reputation: 781

Post » Sat Jul 21, 2012 4:53 pm

Okay, first you'll need to save the target object. You can do this by storing the picked object's UID in a variable. Then it's just a matter of rotating the missile towards the picked object. The simplest way would be with the "Rotate towards position" action.

Here's a .capx to illustrate: HomingMissile.capx (r99)Nimtrix2012-07-21 16:54:33
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Jul 22, 2012 4:23 pm

[QUOTE=Nimtrix] Okay, first you'll need to save the target object. You can do this by storing the picked object's UID in a variable. Then it's just a matter of rotating the missile towards the picked object. The simplest way would be with the "Rotate towards position" action.

Here's a .capx to illustrate: HomingMissile.capx (r99)[/QUOTE]

Thank you so much Nimtrix that was exactly what i was looking for.
B
7
Posts: 28
Reputation: 781

Post » Sun Jul 22, 2012 4:32 pm

is marking more than one object possible.. before shooting ?
B
7
Posts: 28
Reputation: 781

Post » Sun Jul 22, 2012 5:00 pm

Sure, store the UID's in an array instead of a variable: PickMultipleTargets.capx (r99)
B
27
S
8
G
8
Posts: 903
Reputation: 8,452


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Google [Bot] and 21 guests