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

help with sackbots please??

Archive: 3 posts


im working on a level titled " into the shadows " however ive put it on hold because im not that good with sackbots. i mean i know enough to use them but not enough to make them smart enough to chase you and shoot stuff out at you. i can probably figure it out but its frustrating! lol.

so basically there is a scene in the next part where the character enters the ninja dojo and must defend himself from the ninjas...i would like the ninja's to shoot out shurikens. ive experimented and have made a sackbots that i control do this...but not enemies that are not controlled.

any help/advice or information on here would be great. or if you don't mind add me and ill show you the level and you can help me there
2011-07-07 10:32:00

Author:
wolfy_616
Posts: 202


Ok... I think I understand what you want to do, I believe the best course of action is to build the bot in 2 parts.

Part 1 should be the bot itself, put a tag on this bot which will act as a anchor for a follower later... You can create basic awareness by using two sackbot emotion chips... set one to patrol and the other to follow. The one that follows is activated when a player is in range... use a player sensor for this but using the same player sensor connect a not gate and connect it to the atrol chip. You could also add a third chip that causes the bot to flee if the player stands on them / gets too close

part 2 is a piece of holo that follows the sackbot... place a follwer on it set to follow the tag on the enemy. Then connect the rotator which follows the player. Now this should sort out aiming. To fire put a emitter on the holo (or chip if you want to be tidy) and connect it to a player sensor with the angle set to the sackbots view... set the frequency as desired on the emitter.

This should create a sackbot which can fire projectiles at the player and will patrol until you get into range. Finally as an optional extra... attach a seperate tag to the holo with a label such as "view" and set the sackbot to look at it... then it will look more realistic that they are aiming at you

I really hope this helps you.. or someone else viewing in someway... my first guide on anything so forgive me if its a little vaque
2011-07-07 18:40:00

Author:
ForgottenEnigma
Posts: 1414


Dav1d0's advice is solid. Do note, however, that using the shuriken object means that other sackbots can die from it, including the one throwing it if he runs into it.

I managed to take the dagger object apart once, resulting in a non-lethal object. I can then make enemy bots ignore that (tagged) object's impact, while friendly bots (the one controlled by the player for instance) die from it. Such decision logic can however not be stuck on the player (though you can detect impact with a player on the projectile itself and have the object become lethal briefly). I am not sure if it is possible to take the shuriken apart, but it is worth a try.
2011-07-07 19:16:00

Author:
Antikris
Posts: 1340


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.