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

Awarding points for free for all?

Archive: 5 posts


Im trying to make an assasins creed level and im uncertain on how to award points for my sackbots. All sackbots would be emitted individually. its a 2-4 player game. Though For some reason whenever i try to award points for a multiplayer game the points go to the guy who died, rather the guy who killed him. So does anyone know a way i can have a sackbot free-for-all with points awarded properly. My last resort is having everyone start off with points and then simply just give negative points to whoever dies. But thats not that fun.2011-11-13 00:40:00

Author:
lilballer22
Posts: 63


The logic leading to your score giver naturally carries information about which player caused the signal to be sent. Since the logic is triggered by a player dying, that player's identity is tied to the signal and the score giver assumes that you want the points to go to that person.

The solution is to trigger the score giver using the player that got the kill. If you haven't done so already, you're going to need to devise logic that identifies the killer so you can activate the score giver with the correct player. It really depends on the details of your particular combat system: basically, when a player's attack impacts something you need to see if that impact resulted in a death.

Once that logic is in place, you can easily guarantee that a certain player gets points from a score giver by wiring the active output of that player's controlinator to the first input of an AND gate while the rest of your score logic for that player attaches to the second port. Whatever player data arrives in the first input overrides player data in the second input and only one player can occupy a given controlinator, so you know that person's identity will be carried past the AND gate. The trick is sorting out the preceding kill logic in the first place.
2011-11-13 01:18:00

Author:
Uncuddly
Posts: 237


Thanks all of my characters were using the same tag for hits, i gave everyone individual tags for hits and when a player dies by that tag it would emit a tag that sends a signal to the sackbot and gives the killer points. Edit: after a try with 3 ppl for some reason my points are in black and nobody gets points, do you know why?2011-11-13 15:33:00

Author:
lilballer22
Posts: 63


Black means you used a signal which didn't have any player info attached to it. Look back at your logic, there's something wrong. By the way, no need to emit tags, you can wire stuff to them in LBP2.2011-11-14 00:19:00

Author:
Unknown User


Sometimes a score giver will receive the right player data when you're testing offline but produce black numbers when you're online. I'm not sure what the exact circumstances that cause the problem are, but I've seen it happen myself.

The above-mentioned controlinator output trick should prevent black numbers every time, though. To clarify:

1) The active output of the player's controlinator goes into the first input of a two-port AND gate. The active output is the one in the middle of the controlinator's dualshock display. If a player occupies the control seat, this will constantly output a full signal with that player's identity.

2) The output of your score-triggering logic goes into the second input of the AND gate.

3) The output of the AND gate goes into your score giver. If score is supposed to be given and the control seat is occupied, whoever occupies the seat gets points.

It may seem like an unnecessary step on paper, but having this extra AND gate connecting the controlinator to the score giver definitely prevents black numbers in online play.
2011-11-14 01:45:00

Author:
Uncuddly
Posts: 237


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.