PDA

View Full Version : Magic: The Gathering life counter in LBPV?



fredwilson
09-30-2012, 09:37 PM
The last thread was closed (why?) so I am going to try this again.

I want to make a utility for Magic: The Gathering using LBPV that includes a life counter. I want to make a counter that will display any whole number (between 0 and 99/999) and defaults to 20.

I understand sticker panels and touch screen controls, but I need to figure out the logic. The only method I can think of is to use a 100-input selector and spend a lot of time wiring the sticker panels.

A priority of mine is making the level quick and responsive.

Thanks in advance.

Lady_Luck__777
09-30-2012, 09:41 PM
I don't know why it was locked.
I moved it from tutorials to help.

JKthree
09-30-2012, 09:52 PM
You won't need a 100 input selector. You can have 3 10 selectors one for each digit (Tens, hundreds)

However you really shouldn't go with numbers that high, because the fastest time you can subtract a digit is 0.1 seconds so a 300 subtraction would take a whoppin 30 seconds.(unless there's something new in LBPV i'm unaware of, those addition ORs might be related for this but i haven't touched them yet) and counters can only go to 100, making logic to identify values over 100 with more than 1 counter can sometimes be trick

If you can try to limit your range to under 100

fredwilson
09-30-2012, 10:04 PM
I could limit my range to 0-99, but I want to know how?

evret
10-01-2012, 01:06 PM
You won't need a 100 input selector. You can have 3 10 selectors one for each digit (Tens, hundreds)

However you really shouldn't go with numbers that high, because the fastest time you can subtract a digit is 0.1 seconds so a 300 subtraction would take a whoppin 30 seconds.(unless there's something new in LBPV i'm unaware of, those addition ORs might be related for this but i haven't touched them yet) and counters can only go to 100, making logic to identify values over 100 with more than 1 counter can sometimes be trick

If you can try to limit your range to under 100

you can create a pulse that pulses every second frame, so 15 times per second. wire your input to the top input of a 2 port selector, wire the top output to the second input, then also wire the top output to your counter/selector. this works in both lbp2 and lbpv.
however most people use analogue feedback loops for these types of things (health/mana etc), and they are much easier on vita than on lbp2.

Agarwel
10-01-2012, 04:43 PM
If oyu need just show a numbers, then use the Note. You can set the input to show the signal strength. Then it is just a matter to sent there the propper value.

pivottt
10-01-2012, 06:00 PM
Yay! I can start propaganda! I just made a tutorial on this.
Link to the level is in my signature, and go see the LBPVita tutorials section, I made a detailed text version if the level is unclear.

ChrisF2112
10-06-2012, 07:26 PM
Yeah, notes are going to be your best friend if you want to display numbers. Set the not to display numbers, then set the value of the note to whatever the max value you want to display should be. After that, you'll just have to create a counter or timer that will represent the health and connect it to that note for display.