Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Tutorials
#1

How to make a Homing Missile

Archive: 3 posts


Hello, it's my first time I will showcase an object I did, this object it is already given away as a gift on my level SackGrius (https://lbpcentral.lbp-hub.com/index.php?t=63745-Sackgrius&highlight=Sackgrius) , at the end of this level (when you reach the final scoreboard).

To make a Homing Missile, you will need 3 things:

1) A target locator -- to search for an Enemy...
2) A lock on Target tag -- to indicate that the target locator successfully found a target...
3) a Missile that will search this target lock on...

The target locator will try to avoid an already "locked" target and will fly away trying to "Lock on" an alternate target...

On my example here, the "target" locator have this form:

http://www.lbpcentral.com/forums/attachment.php?attachmentid=37536&d=1320096537&thumb=1&stc=1

This object will "locate" any other object that have a special "ENEMY" tag on it and will follow it and will stick on it... then it will activate a "Target Lock on" tag :

http://www.lbpcentral.com/forums/attachment.php?attachmentid=37539&d=132009653

Then, any missile close to this "Locked on" target...

http://www.lbpcentral.com/forums/attachment.php?attachmentid=37542&d=1320096541

... will be attracted by it and will follow it...
http://www.lbpcentral.com/forums/attachment.php?attachmentid=37541&d=1320096540

and then... BOOM!
http://www.lbpcentral.com/forums/attachment.php?attachmentid=37538&d=1320096538

It's not difficult to do it,

Here is the logic for the "Missile":
http://www.lbpcentral.com/forums/attachment.php?attachmentid=37537&d=1320096537

The Missile logic has 3 sensors...
the blue sensor (TagName Player) will actually activate the missile
the red sensor (TagName "LOCK-ON") will detect any tag that is activated as target and will also activate
"the follower" to this LOCK-ON, if not "Lock-on" tag detected, a mover is activated instead.

here is the logic for the "Target Locator":
http://www.lbpcentral.com/forums/attachment.php?attachmentid=37540&d=1320096540

this have also 3 sensors:

a purple sensor (TagName:TARGET LOCATOR) AND a red sensor (TagName:TARGET LOCKED), if both sensors are activated will help the target locator to avoid an "already locked on" target and it will activate a "Fly away" follower, otherwise if both are "off" it will activate a follower(TagName:ENEMY).

a green sensor (TagName:ENEMY) will activate a timer, when this timer finish, it will emit a new object that will contain the actual "TARGET LOCKED" tag and the "TARGET" symbol (Target Lock On)

And the logic for the "Target Lock On":

http://www.lbpcentral.com/forums/attachment.php?attachmentid=37547&d=1320098711

Here you can see 2 sensor, and 1 follower:
the follower will follow a "TARGET LOCATOR" tag, and will stick on it, also this "TARGET LOCK ON" will be valid only if the green sensor (TagName:ENEMY) and the purple sensor (tagName:TARGET LOCATOR) are active, otherwise will mean the enemy tag was destroyed and the target lock on is not needed any more.

If the target is destroyed, and other enemy is close by, it will jump to the new enemy and will stick on it.

Well hope you enjoy it, and happy homing destruction!...
2011-10-31 23:42:00

Author:
xquake
Posts: 73


Hmmm....your stuff is always good, but is this better suited to the tutorials thread? I'm interested in re-reading this when I need to build this, and it may belittle tricky to find.2011-11-07 01:52:00

Author:
Mr_Fusion
Posts: 1799


Hmmm....your stuff is always good, but is this better suited to the tutorials thread? I'm interested in re-reading this when I need to build this, and it may belittle tricky to find.

Hello, yes, I was thinking about that the next day I published it, But I do not want to repeat the same thing on tutorials and then may be the moderator will tell me I'm repeating things...

But I wonder if the moderator can move this thread to tutorials... Or can I do that?
2011-11-07 18:18:00

Author:
xquake
Posts: 73


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.