Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
close proximity decreasing HP
Archive: 6 posts
I have never had to make a health bar for my levels but I need one. Hopefully someone can help. I need a health bar that will decrease everytime an enemy comes close. And once you run of bars the game ends. How do I go about making this work? It's for a minigame I've made for vita but the logic and mechanics is not specific to vita. In the middle of the stage will be a damsel in distress who is too scared to move. So she stays still. Enemies approach and the player must touch them to destroy them. If an enemy gets to close then you lose a bar of health. How? | 2012-10-06 19:34:00 Author: wolfy_616 Posts: 202 |
It depends on if you want a defined number of hit points, in which case you could simply use a selector switch that decreases each time you take a hit. Each output can light up a block on the hp bar, and reserve the top spot on the selector switch for 0 hp. Or you could use a timer based hp bar, which makes it easier to take different amounts of damage. http://www.youtube.com/watch?v=JXJzQrsGxpc Here's an excellent tutorial for timer based health bars, by Comphermc. | 2012-10-07 02:15:00 Author: Brannayen Posts: 438 |
http://www.youtube.com/watch?v=JXJzQrsGxpc Here's an excellent tutorial for timer based health bars, by Comphermc. i would go with this one if you can grasp the logic easily. i'm working with it right now and it's pretty solid. | 2012-10-13 03:35:00 Author: harbingernaut Posts: 126 |
I recommend checking out the feedback sensors from pivottt in this level (http://lbp.me/v/5e2r2g). They're pretty neat. You can dynamically decrease or increase health by varying amounts or even set it to a certain value with almost no delay. You'll want to get familiar with signal strength, and signal addition and subtraction and how it works before you use this method. | 2012-10-21 03:34:00 Author: BIGGamerer Posts: 182 |
Maybe i'm not catching something...logic's not my strong point, and i'm at work, so i can't tinker at the moment, but... Couldn't you just set a timer with tag sesor as an imput? If it fills completely it triggers whatever makes your level end? Once the sensor isn't recieving input, the timer stops, right? | 2012-10-21 05:32:00 Author: waffleking23 Posts: 535 |
There are many ways to go about this, both simple and advanced. The easiest would probably be a timer/counter/selector with a direction combiner running into it. A sensor sensing enemies tags would go into the + and and method of healing into the -. | 2012-10-24 04:37:00 Author: Tynz21 Posts: 544 |
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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.