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

Sackbots Health Bar

Archive: 6 posts


How i do it?
I tried putting a Projectile Counter then linking it to a Destroyer, but the Sackbots just die if i use Plasma, Electric, Explosive and Fire Bullets!
2011-08-25 13:07:00

Author:
Flame Dragon
Posts: 312


https://lbpcentral.lbp-hub.com/index.php?t=53194-How-To-Create-A-Health-System-Range-1-864000-(Picture-Tutorial)-Works-as-Cash-system

https://lbpcentral.lbp-hub.com/index.php?t=44386-HOW-TO-Convert-Timer-into-Health-Bar



The search function is a pretty handy tool
2011-08-25 15:54:00

Author:
Epicurean Dreamer
Posts: 224


How i do it?
I tried putting a Projectile Counter then linking it to a Destroyer, but the Sackbots just die if i use Plasma, Electric, Explosive and Fire Bullets!

Well there are several different methods for creating health bars, personally I wouldn't use a projectile counter as a health bar, for the mobile 'HUD' I have created I have used timers to show health/ammo/mana etc, it is still possible to use counters but I have found timers to be far more flexible. There are many threads regarding health bars though so I won't try to explain something that has already been written about many times over. A good start would be to do a search of the forum or maybe check out Comphermc's youtube tutorial http://www.youtube.com/watch?v=JXJzQrsGxpc.

Regarding projectiles, if you want to use some lethalised material for your bullets you could try creating them in the thin layer and then glueing them to some thick hollow at zero brightness, these two together would make up your projectile, make sure you have a tag on the thick hollow labeled 'bullet' or whatever and then just use a like labeled sensor on your sackbot to trigger your health bar logic. For me this looks a little better than emitting thick layer material projectiles, and remember that by using tags/sensors you're not restricted to using lethalised material anyway, you can employ whatever look and effect you want!

If in your level the player control's the sackbot with the health bar, you will need to consider how to deal with checkpoints in the event of the sackbot being destroyed by death from either touching lethalised materials or when the healthbar reaches zero, I have built my own logic for custom checkpoints that deals with this very effectively but that's another topic. If you want you can add me and I'll pop over to your moon sometime to show you my complete system.

Hope that helps a little!
2011-08-25 15:59:00

Author:
CloaknBlagger
Posts: 78


I was talking about ENEMY Sackbots, not controlled, but thanks anyway, any info is appreciated anyway!2011-08-25 22:23:00

Author:
Flame Dragon
Posts: 312


I was talking about ENEMY Sackbots, not controlled, but thanks anyway, any info is appreciated anyway!

Controlled or not, lethalising only a thin layer object and glueing to some tagged hollow as your projectile should still work (as far as I'm aware the lethalised thin layers will not destroy your enemy bot, leaving that function to your health bar system?
2011-08-25 22:48:00

Author:
CloaknBlagger
Posts: 78


Oooh ooh I could help, but Ingame, Im done with writing looong paragraphs for this quarter of today 2011-08-26 12:07:00

Author:
NcLc2010
Posts: 72


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.