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

Timer into energy bar?

Archive: 6 posts


Hi, I've been trying to convert a timer into an energy bar for my sackbot's abilities, but I can't seem to get it together.

I have around 5 powers planned, and two of them are already complete.

The first two are very simplistic.

1. anti-grav sackbot. The sackbot's gravity is cut in half, allowing for longer jumps and slower falls.

2. Telekinesis. You know this one. Custom microchip with a controllinator, advanced mover, and a tag sensor placed on whatever needs lifting.

These are my problems:
1. When I connect my anti-grav chip up to the timer: once the ability is initiated it continues to do so until the timer runs out. This would be all fine and dandy, but I want the backwards/forwards timer effect, so that my "energy bar" drains as long as the ability is being used and then begins recharging itself when the ability is not being used. The only way I seem to be able to set up the anti-grav so that you must hold the button down to use it is by connecting it straight to the controllinator, because when I connect it through the timer it remains activated even when you release the assigned button. ? I want to know if I can set it up so that the Anti-Gravity ability runs through the timer (set up on forward/backwards recharge mode) and can only be used while its corresponding button is being held down. ?

2. How could I set it up so that the telekinesis also runs through the same timer (draining/recharging energy bar) as the anti-gravity but in a way so that they cannot be used at the same time?

Thanks for any help.

question number one has been self resolved. Just made it so that the ability has an "and" gate that connects the timer and the r2 button into one command.

question number 2 is still up in the air. any help?
2011-02-15 00:55:00

Author:
Rouzeki
Posts: 17


Since you're using the same timer for both buttons, this is actually easy. I'm assuming you are running the button outputs into an OR gate before running them into the timer? If so, just replace that OR gate with an XOR gate and you're good to go. Now only one can be active at a time.2011-02-15 14:15:00

Author:
Shanghaidilly
Posts: 153


thanks shang!2011-02-15 22:53:00

Author:
Rouzeki
Posts: 17


HI guys, I recently made a health bar/energy bar combination using two timers. The energy bar runs on a "forward/backward" setting so it recharges, and the health bar runs on a "on/off" setting with a tag sensor, a not gate and a death chip.

My question is this:

How do I make it so that different attacks decrease the health bar/timer in different incriminates (different amounts of damage)?

Thanks guys.

-Rouzeki
2011-02-15 23:05:00

Author:
Rouzeki
Posts: 17


Here's a tutorial: //www.lbpcentral.com/forums/showthread.php?44386-HOW-TO-Convert-Timer-into-Health-Bar (https://lbpcentral.lbp-hub.com/index.php?t=44386-HOW-TO-Convert-Timer-into-Health-Bar) This should help.2011-02-15 23:30:00

Author:
cheesemuffins99
Posts: 102


No need to start a new thread about the same thing, especially so soon after the other thread. Merged them for you.2011-02-15 23:44:00

Author:
Sehven
Posts: 2188


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.