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

Please Help about a following HP Bar

Archive: 5 posts


Hey Guys,

I'm kinda lost here...
I wanna create a Action like Level and got a working sackbot with a HP Bar. thing is, the HP bar is always on the same Spot and if the Camera zooms in, the HP Bar is out of the Screen (because its Glued on a Hologram on the Sackbot). I can see it in Cutscenes too.
Sooo, my Question is, can i hide it during Cutscenes somehow and make it, that its always on the TOP left Corner of the Screen even the Camera zooms in?
2012-11-19 12:49:00

Author:
Unknown User


Hmmm. I assume your Sackbot is controlled by a Controlinator, attached to some invisible Holo/Sticker Panel which follows the Bot?

For getting the Bar to stay in the correct corner, I'd recommend first, removing the bar from the Holo that follows the Sackbot, and placing it on a separate piece of Holo.
Place a Mover on this piece of Hologram, and set it to follow a Tag. For the sake of an example, I'm going to call my label 'HPBarWaypoint'

Next, take your Sackbot Holo, and make it large enough to cover the maximum camera zoom.
(Meaning, if you zoom the camera all the way out, the Holo should occupy the entire screen, almost.)
For each of your Zoom levels, (Close, Medium, Far, whatever.) you place one Tag on the Sackbot Holo.
You then activate each Tag based on whichever camera is active at the time, and the HP bar will move where you need it.
The more the camera moves, though, the more awkward this becomes, so I'd recommend using 3 or 4 specific camera distances.

For Cutscenes, you could try adding one extra Tag, that is off-screen. Whenever a Cutscene is active, active that Tag and the HP Bar will leave the shot until you need it again.
2012-11-19 13:58:00

Author:
Ostler5000
Posts: 1017


Wow thanks a lot! I'm gonna try that later and tell you if i got it to work. Oh and yeah, i'm controlling the Sackbot with a Controlinator.2012-11-19 14:38:00

Author:
Unknown User


Alternatively, you can have the HP bar consist of just a timer bar on a piece of holo, fed by a tag sensor set to signal strength and a follower that makes the holo chase the sackbot. All the other logic is hidden on the sackbot (or elsewhere) and broadcasts the HP value to the bar.

For that to work, set the timer bar to speed input, 0.1s. Stick a signal combiner in front of it and wire the timer output to the negative input. Then wire the tag sensor to the positive input. The timer will now represent the analog signal value that the tag sensor receives.

Then, when needed, you can destroy this piece of holo and lateron emit a new on, without losing the actual HP.
2012-11-20 07:34:00

Author:
Antikris
Posts: 1340


You're awesome Guys! I will try both methods as soon as i get home. Couldnt try it yesterday due to work.
I'd never come up with stuff like that... Maybe i just need more practice or i'm not bright enough xD

EDIT: Got it to work, thanks!
2012-11-20 07:44: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.