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

Determining Winners

Archive: 4 posts


Hey LBPers.
Y'see, I'm trying to make a level where (at least) two people are competing against each other. It'll be two-to-four players, though. Anyway, I've been watching tutorials, and I think I have a few vague ideas from CompherMC's Player Counters tutorial. But, well, here's what I'm trying to figure out. Some kind of system where it determines if there is only one player left, and then takes the players (controlling sackbots, easy enough with sackbot switching/respawning), to an end results screen, where it shows the player who won as first, and so on.
Now, I know how to set up the logic that will decide if you have two-to-four players. I just need, say, a system in reverse. Some way to get it so it recognizes if there is only one player left standing, and recognizes, specifically, the player (sackbot) that wins.
Do you guys have any ideas? If you do, I'd really appreciate it.
2013-04-24 00:21:00

Author:
Unknown User


I know how to do it, but there's no way I can explain it without sounding horribly confusing. >_<
I can do it for you if you want. Or you can try to understand my explanation...

Each player is in an invisible controllinator controlling the sackbots. Have tags like "bot 1 bot 2 bot 3 bot 4" in the sackbots and 2 followers in each controllinator (1 with small range, 1 with big range) in different microchips. Have the small range activated first with a selector. When a sackbot dies, emit that same sackbot at the end of the level in whatever place is for last place. Repeat for each sackbot. When all playing sackbots have died, activate the follower with a big range and all players should now teleport to and control the sackbot at the end.

Doing it is easier than explaining it....sorry x.x
2013-04-24 03:09:00

Author:
dragonboy269
Posts: 172


I like it, a lot. Thanks for that. The only problem is how do I make it so it recognizes the order in which they die? As in, how does it know that sackbot died first?
Wait, as I was typing this, I remembered you said selector. Did you mean the selector would do that somehow? Or were you describing the sackbot-switching part?
2013-04-24 03:36:00

Author:
Unknown User


I'll try to explain it...
Oh you could use a selector for that. Like... Use the player detection thing, have the selector start at the player number, have tag sensors for each sackbot, when the sackbot dies, the tag sensor should notice it's gone and emit that sackbot first (like bot1 dies, the tag sensor notices bot1 is dead and emits bot1 at the end)
then "cycle"the selector up 1, when the next player dies it will emit the next one, etc. Until all have been emitted.
2013-04-24 04:23:00

Author:
dragonboy269
Posts: 172


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.