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

Enemy Backstabbing Attack?

Archive: 11 posts


I was working on my Light Warrior top down fighting level and I wanted to have an enemy who would avoid approaching you from the front. It would try to strafe around you and when it reaches your blind side it will rush at you to attack. I'm sort of stumped on how to let the enemy know whether your're facing it or not. Anyone have any ideas? A level testing the Light Warrior is in my sig by the way.2011-02-24 05:36:00

Author:
Unknown User


how about a tag sensor. Tweak the radius angle settings to your desired field of vision, and then set it up to a sequencer or randomizer ( depends for outcome) with a couple of different movers. So, what should happen is that when you step into or near it's FOV, the movers will activate, moving it or turning it around etc.2011-02-24 05:48:00

Author:
dragonember
Posts: 607


I'm afraid I don't understand you. My character is the size of an controlinator. I don't see how a tag sensor cares what angle I approach it from no matter how far the trigger radius is narrowed down.2011-02-24 05:57:00

Author:
Unknown User


I'm sort of lost here. The tag sensor causes the enemy to move, out of your character's way, once it recognizes the corresponding tag on your character. This is what you are trying to achieve, correct?2011-02-24 06:14:00

Author:
dragonember
Posts: 607


But then how do I make it rush at me when it gets behind me? The tag sensor will still detect the tag on my character whether it's in front or back of me.2011-02-24 06:19:00

Author:
Unknown User


Glue strip of holo to back of the player and place tag to it.

Make the enemy circle around the player with look at rotator and mover set to local space.

Connect inverted impact sensor that detects tag in the holo to your mover.
2011-02-24 08:20:00

Author:
waD_Delma
Posts: 282


Use two tags - a "back" tag, and a "side" tag on your player. Put two side tags on its sides (or just one in its center might work), and a "back" tag as close to the center of its back as possible.

On your backstabber, hook two tag sensors (set to detect Closeness) to a Direction Combiner. Stick the "back" sensor in the negative input, and the "side" in the positive. Hook the Combiner to a Splitter, and the Splitter's negative output to a Sequencer set to input-type Positional. Stick a battery in the Sequencer and make it fill the entire thing - this converts any signal from the Splitter into a full ON signal. Make the battery power your backstab sequence.

What this does is subtract the distance to the closest Side from the distance to the Back. (Side - Back). If the result is negative (if Back's signal is stronger, that is, Back is closer), it'll power the Sequencer which powers your attack. You can adjust the positions of the Side tags to provide a different back radii - squeeze them closer to make the enemy try to get directly behind you, put one farther towards your front to provide a side attack, etc.
2011-02-24 08:37:00

Author:
Loius
Posts: 342


Thanks, I never would have thought of comparing the distance between two tags to find whether its closer to the front or back. That might just work.2011-02-24 14:40:00

Author:
Unknown User


You can create the character field of vision with tag sensor, and on the enemy set it that as soon the enemy is in range of the sensor (In other words as soon as your character field of vision sees the enemy) he flees, and he would only move basicly when your not looking.

Do you remember the Boo's From Mario?

Though if that wont work for you, theres thousands of other ways to make it better, but this one would be the simplest way I guess.
2011-02-24 14:47:00

Author:
Bloo_boy
Posts: 1019


That could work as long as there's only one enemy at a time, but once there's more than one they'll all try to attack at once whenever any one of them is in the "back" portion of the character.2011-02-24 19:23:00

Author:
Loius
Posts: 342


That could work as long as there's only one enemy at a time, but once there's more than one they'll all try to attack at once whenever any one of them is in the "back" portion of the character.

True, but that is exactly how the boo's work in mario. And well it would make it more realistic (I mean after all its a back/suprise attack) whenever your back is showing they would come at you either there 1 or 2 but then again, in LBP that is really hard to make it work and it might a little sloppy >_< so your right, thanks for pointing that out .
2011-02-24 19:48:00

Author:
Bloo_boy
Posts: 1019


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.