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

Hit counter/Damage modifiers

Archive: 3 posts


Hopefully someone can help me here. I have an object that when it is hit so many times it dies (impact sensor tied to a counter).

Now when it is hit by different sources/materials, I want to modify the damage. For instance, if the creature is hit by fire I may want it to do 2 damage, but if it is hit by a thrown block of wood I only want 1 damage. I figure tags on the projectiles and a corresponding impact sensor looking for that tag will take care of sorting out what object just hit. Is there a simple way to get it to register the damage modifiers as well?

Any help would be great. I'm getting to that point where I'm sure I am over thinking this, and I'm sure it is getting far more complicated than it needs to be.
2011-01-21 17:35:00

Author:
tdarb
Posts: 689


You might wanna' look into using a timer as healthbar (https://lbpcentral.lbp-hub.com/index.php?t=44386-HOW-TO-Convert-Timer-into-Health-Bar) instead of a counter.2011-01-21 19:52:00

Author:
Sehven
Posts: 2188


Yeah, I was looking at that, but I would really like to stick with counters for this since all of my targets are already built using counters.

I think I may have found a way that will work, but I will have to test it out. If not, the link you gave may be the way I go. Thanks.
2011-01-22 06:09:00

Author:
tdarb
Posts: 689


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.