Home    LittleBigPlanet 1 - PSP - Tearaway -Run Sackboy Run    LittleBigPlanet 1    [LBP1] Help! [Archive]
#1

Help creating a complicated scoring system

Archive: 3 posts


Well, it's not actually complicated, but everything I've tried doesn't work and it seems almost impossible to do, so I assume a complicated logic solution is what is needed.


I'm making a minigame where there is a goal, a bat, and a load of balls. The player moves the bat (using a jetpack behind a wall) left and right to defend their goal from the balls that are being fired at you. If you let 10 balls in the goal, you explode and the game is over.

The problem is counting how many balls go in the goal. Currently I have something that looks like this:

http://farm5.static.flickr.com/4068/4222168138_a0a1be3605.jpg

The balls have keys on them and the bat has two key switches, one each side, with a narrow width so that when the balls pass a paintball is fired at the bat and your health goes down. Fine in theory, but depending on the angle the ball is fired, sometimes one ball will activate the switch repeatedly several times. Others it won't activate at all (It's definately a one-shot switch, by the way). It's no good doing it this way if one ball will take away or your health.


So, I thought I would come here to see if anyone else has any better solutions. Ideally I'd like to use a single key switch covering the goal, but obviously that won't work if 2 or more balls go into the goal at once, as a switch only knows if a key is in the radius and not how many. So it looks like I'll have to o it slopightly more complicated, but any logic I'll be using will need to be emitted along with the bat at the start of the game, so it's best if everything can fit on the bat.

Any ideas?
2009-12-28 12:39:00

Author:
Nuclearfish
Posts: 927


Ideally I'd like to use a single key switch covering the goal, but obviously that won't work if 2 or more balls go into the goal at once,

is this that 2 balls could go in at the same time, or that the balls get caught in the large radius for too long. If the latter, you could have the keys on thin layers of dissolve behind the and the balls dissolve them as they go past the threshold of the goal mouth. Add margins so the bat will always detect them before dissolve and you should be all fine and dandy.
2009-12-28 12:44:00

Author:
rtm223
Posts: 6497


is this that 2 balls could go in at the same time, or that the balls get caught in the large radius for too long.

Both really. The balls could come in at any speed, any angle and any time.


If the latter, you could have the keys on thin layers of dissolve behind the and the balls dissolve them as they go past the threshold of the goal mouth. Add margins so the bat will always detect them before dissolve and you should be all fine and dandy.

Good idea. Might give that a go. Only thing is the balls are pink floaty, and they can't have any weight otherwise my idea won't work. So I might have to add small amounts of peach floaty to counter the weight of the dissolve.
2009-12-28 12:56:00

Author:
Nuclearfish
Posts: 927


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.