Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Lock-on Targeting
Archive: 5 posts
Does anyone know how to make something like this? If you don't know lock-on targeting is a feature commonly found in action RPG that automatically tracks the enemy the player is locked on to. | 2012-03-13 12:16:00 Author: Unknown User |
You will have to be more specific; is this a cursor that is tracking a moving enemy? A homing missile? Perhaps show us a picture? | 2012-03-13 17:08:00 Author: Antikris Posts: 1340 |
Oh sorry. To be specific it's a cursor tracking an enemy. Its supposed to make it easier for players to aim as it has been a common complaint from those who tested it. | 2012-03-13 22:37:00 Author: Unknown User |
Oh sorry. To be specific it's a cursor tracking an enemy. Its supposed to make it easier for players to aim as it has been a common complaint from those who tested it. Without any further detailed info I'd say it can be as easy as having the cursor follow a tag at maximum speed and activating that tag on an enemy that needs to be tracked. Or have them all activated and the cursor will pick the closest enemy once it is set free; if an enemy is destroyed it will holler to the next closest enemy, given you set its detection radius large enough. | 2012-03-14 01:02:00 Author: Antikris Posts: 1340 |
I finally got it working! Turns out, it wasn't as complicated as I thought it would be. I did your second suggestion with a few tweaks. http://i44.tinypic.com/15comc2.jpg The tag sensor is set to look for a red tag labeled "Target". At first it worked but with moving targets it keeps switching between targets even if it's original target is not destroyed. So what I did was to set the radius of the tag sensor to a smaller one, around 5. Then I put it's output through a NOT gate which activates a follower following the tag. The second follower activates when the cursor is close to the target. It follows the same tag but with a much smaller radius. I made it this way so that when the cursor is close to the target, the follower won't switch between moving targets. The microchip on the top right is so the cursor destroys itself if there are no more targets around the character. | 2012-03-14 03:42:00 Author: Unknown User |
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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.