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

Problem with Energy Blasts and Health Bar

Archive: 9 posts


I'm creating a platform level similar to Megaman. I created the health logic using the HP Bar Tutorial in LBP2 Torials by Comphermc. It works great. My sackbots have a holo block following them with the health logic on the holo. So, the holo serves as a hit box basically. It's a little more accurate this way. But the problem I'm having is, all of my hits don't register. If I fire rapid blasts at a sackbot or any other creature using this method, only one of my shots registers on the hitbox. The other 5 or 6 blasts dont register. So, if I fire rapidly 6 times, only one of the hits affect the sackbot's health bar.

Can anyone help me with getting all of my blasts to register on the hitbox. I have an emitter on the main character set to emit once. This is the smoothest way to fire blasts one at a time.
2011-03-21 20:33:00

Author:
rambo3416
Posts: 179


Are the energy bullets rigged to destroy themselves on impact? If so, then I've had this problem before - they're probably destroying themselves too soon for the hits to register.

Or it could also be that more than one energy bullet is intersecting the hitbox at once - if the hit detector is set to one-shot (which it probably is), then it needs to go without registering a collision, if even for an instant, before it can register a new one.
2011-03-22 04:07:00

Author:
Blue Helmet
Posts: 306


Its possible that more then one bullet is contacting the hit box at once. But i havent put a destroyer and impact sensor ony bullets yet so thats not the problem. My emitter is set to emit once. This allows me to shoot rapidly by continuously pressing the fire button. But most of the bullets goes straight through my target while only one registers. Do you have any solutions?2011-03-22 06:54:00

Author:
rambo3416
Posts: 179


What are you using for your projectiles?2011-03-22 09:39:00

Author:
rtm223
Posts: 6497


If you are using impact sensors (instead of projectile sensors) on holo, it might have to do with the 'include touching' setting being switched off. Try it out.

Multiple simultaneous hits on the holo are also a possibility, though I think it is a slim chance; impact sensors are so accurate that I am now often using impact sensors where I'd previously used tag sensors.
2011-03-22 10:21:00

Author:
Antikris
Posts: 1340


The issue is that the impact sensor (which I assume you are using) is not turning off. This prevents it from pulsing the damage again. You can solve this by using a much more extensive method to detect damage, but it's not nearly as clean as simply using impacts.

I'm too busy to outline it, but check my tutorial and look at the adder and the projectiles, using these will solve your problem (ignore everything else, it's only for ridiculous setups which require a large number of different damage types).
2011-03-22 11:19:00

Author:
SSTAGG1
Posts: 1136


The issue is that the impact sensor (which I assume you are using) is not turning off. This prevents it from pulsing the damage again. You can solve this by using a much more extensive method to detect damage, but it's not nearly as clean as simply using impacts.

Ah, of course! Since the detecting object is made of holo, the penetrating projectile will go straight through and keep the impact sensor lit up until the projectile impacts with something else and disappears. Meanwhile, another projectile may have entered the holo already, meaning the sensor will stay up until a pause in the barrage.

One solution to that could be to have also an impact sensor on the projectile, linked to a destroyer; now, whenever the projectile impacts with anything, visible or invisible, it will self-destruct.
2011-03-22 12:01:00

Author:
Antikris
Posts: 1340


Yeah, I forgot he hadn't connected the destroyers. You could still potentially run the risk of multiple hits being undetected, but that's only if he manages to hit it more than once in 1/30th of a second.2011-03-22 14:49:00

Author:
SSTAGG1
Posts: 1136


Sorry guys i havent been logged on all day. Your suggestions sound correct in theory. Im going to try addind impact sensors and destroyer to my projectiles to see if it works. Thanx

Tried it and it works. I actually used a tag sensor though. I msde an enemy requiring 7 hits to be destroyed. Fired all 7 rapidly and all 7 blasts registered. Funny thing is, adding a destroyer to my projectile was something i was going to do all along once i got some of the more complicated stuff out of the way
2011-03-22 21:12:00

Author:
rambo3416
Posts: 179


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.