Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Recharging Health Bar
Archive: 8 posts
Heya guys, I've currently got a timer set to 10 seconds which I want to use as a mana-bar. When you press R2, it currently triggers a timer which triggers a -10 battery for only a tenth of a second. This easily depletes the mana-bar when it is set to speed scale. However, when I'm not pressing R2 I'd like the bar to recharge on its own. The dilemma is when set to speed scale, I cannot do this. Please help. | 2011-04-12 20:57:00 Author: Unknown User |
My best guess is to wire the R2 button to a NOT gate, which outputs to a second timer that repeats. Wire this timer to the mana timer so it increases the mana timer every time this new timer maxes out. Then you can adjust this timer to change how fast the mana timer builds back up. | 2011-04-12 22:39:00 Author: Brannayen Posts: 438 |
This method won't allow for partial drain though. The kinda thing I'm after is like the mana bar in comphermc's Wizard level, it will recharge when you are not pressing R2, but when you do it depletes by lets say 10%. I can easily manage the -10% factor, but its the recharging that I can't. | 2011-04-13 09:07:00 Author: Unknown User |
Use direction combiner before the mana timer. When you give analogue value to plus side it will drain/replenish that amount of mana and on minus side it is vice-versa. Not sure which way as it depends how the timer is used. | 2011-04-13 10:56:00 Author: waD_Delma Posts: 282 |
I would recommend you check out Comphermc's tutorials (http://www.youtube.com/watch?v=JXJzQrsGxpc) on youtube | 2011-04-13 11:17:00 Author: Slaeden-Bob Posts: 605 |
This shouldn't be a problem at all. It's hard to pinpoint where exactly you have trouble doing it. Maybe you could grab my timber-based health object and tweak that to suit your needs. The adjustments you would need to make are: 1) Set the R2 to trigger whichever amount of mana you want it to consume. 2) If you want a steady recharge instead of a pulsed one, just switch the AND gate from the amount you want to auto-recharge into an OR gate. That should keep it on always. The minimum recharge rate is 10% per second. If you want a slower recharge than this you need to increase the timer max amount to more than the current 0.2s. If you don't want to use my object you can always just as well study it and make your own. Get the health bar from here: http://lbp.me/v/yqdcez | 2011-04-13 12:08:00 Author: Linque Posts: 607 |
Thanks all, I'll be sure to check all of these out shortly. | 2011-04-13 16:17:00 Author: Unknown User |
I have a mana bar worked out, but my problem is that when the timer goes all the way down, it stops activating until it recharges. Contact me in game if you can help, please. | 2011-04-16 01:14:00 Author: Unknown User |
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.