LittleBigPlanet™

LittleBigPlanet Promotion Portal

LittleBigPlanet Promotion Portal

Reply
01 Apr 2011
By: Fuji1 Member 8 Posts
Level 1
Offline
Accepted Solution

Reverse Counter

6 Replies 510 Views Created 01-04-2011

Hi, I was wondering if there was a way to make the counter tool count backwards. I need it to start full, and count backwards. I'm basically using it for a health bar, so it would look weird if it was counting up. I know about the projectile sensor, but that doesn't work with my custom projectiles. If anyone knows how to do this that would be great. All help is appreciated. Thanks

Please use plain text.
Message 1 of 7 (510 Views)
0 Kudos
Level 13
 

Re: Reverse Counter

Yeah, if you set it to reverse output (in the counter's tweak menu), you should find that, functionally and display wise, it now counts down, emitting a signal all the way until it hits zero.

"And when I grow up
I will be smart enough to answer all
the questions that you need to know
the answers to before you're grown up"
Please use plain text.
Message 2 of 7 (491 Views)
0 Kudos
Level 1
 

Re: Reverse Counter

Ah ok now I feel dumb. When I tried using the "invert output" option, I also set the current count to 3 out of 3. I didn't know that it automatically inverts the current count to. For some reason I assumed you ahd to manually set the bar to full. Thanks for the help.

Please use plain text.
Message 3 of 7 (479 Views)
0 Kudos
Level 13
 

Re: Reverse Counter

Don't feel dumb. Blame the shallow in-game tutorials. :smileyhappy:

"And when I grow up
I will be smart enough to answer all
the questions that you need to know
the answers to before you're grown up"
Please use plain text.
Message 4 of 7 (475 Views)
0 Kudos
Level 1
 

Re: Reverse Counter

Hahaha well thanks. I was also wondering if there's a way to make a trigger give an output multiple times at once. Specifically, I want to make it so when a certain type of projectile hits the target, the counter goes down twice at once. I know I can have it where the bar drops twice really quick, but I can't get it to go instantly. 

Please use plain text.
Message 5 of 7 (465 Views)
0 Kudos
Level 13
 

Re: Reverse Counter

Yeah, the easy way is to send two pulses in rapid succession to your counter, as you've no doubt already tried. If you want to be able to vary the amount of 'damage' each hit takes, then you'd be better off with a timer. That will allow you to drop the health bar by any percentage you like with each hit.

 

It would take some time to explain it, so let me point you to comphermc's 'LBPlanetorial' on Youtube which does a far better job than I ever could. :smileyhappy:

"And when I grow up
I will be smart enough to answer all
the questions that you need to know
the answers to before you're grown up"
Please use plain text.
Message 6 of 7 (460 Views)
0 Kudos
Level 1
 

Re: Reverse Counter

Oh I actually tried something similar to that tutorial, but I didn't realize you could adjust the power of batteries. I'll have to give this a shot. Thanks again.

Please use plain text.
Message 7 of 7 (442 Views)
0 Kudos