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

How do I make a Point system

Archive: 3 posts


I was wondering how would I go about making a point system like say for an endless runner it gets faster and faster so you start earning more points and multipliers?2013-04-14 23:07:00

Author:
dudeman779
Posts: 37


This was a tricky one. Trying to explain how to do it here would be difficult, so I published a solution and made it copyable here.

Random Logic Help (http://vita.lbp.me/v/c2vch)

The chip I made has 2 inputs. The top input will be connected to the output of the component that controls the speed of your level. The bottom input starts the score giver.

It will give a score every 5 seconds (adjustable, see notes) which will increase as the speed increases.

I've added notes, but if you have problems with it just reply in this thread.

How It Works.
The score giver's input action is set to "Scaled Every Second", but it will only give a score if the signal is digitally ON (i.e. the wire is lit up), so using the analog signal directly from the input will not work. I have added a timer set to "Positional" and 0 seconds, this is at 100% when the On/Off input to the chip is OFF and gives a digital On signal. When the On/Off input is set to ON the Positional timer moves down to match the analog input, thus keeping the digital ON signal. I then use a timer that creates a pulse at the frequency required and connect it along with the output from the positional timer to an AND gate and connect the AND gate to the score giver.
2013-04-16 23:35:00

Author:
fluxlasers
Posts: 182


This was a tricky one. Trying to explain how to do it here would be difficult, so I published a solution and made it copyable here.

Random Logic Help (http://vita.lbp.me/v/c2vch)

The chip I made has 2 inputs. The top input will be connected to the output of the component that controls the speed of your level. The bottom input starts the score giver.

It will give a score every 5 seconds (adjustable, see notes) which will increase as the speed increases.

I've added notes, but if you have problems with it just reply in this thread.

How It Works.
The score giver's input action is set to "Scaled Every Second", but it will only give a score if the signal is digitally ON (i.e. the wire is lit up), so using the analog signal directly from the input will not work. I have added a timer set to "Positional" and 0 seconds, this is at 100% when the On/Off input to the chip is OFF and gives a digital On signal. When the On/Off input is set to ON the Positional timer moves down to match the analog input, thus keeping the digital ON signal. I then use a timer that creates a pulse at the frequency required and connect it along with the output from the positional timer to an AND gate and connect the AND gate to the score giver.
Thanks this helped a lot I still working though this level will take a while
2013-04-20 00:49:00

Author:
dudeman779
Posts: 37


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.