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

Last Man Standing?

Archive: 5 posts


I'm currently making a versus level which involves sackboys directly controlling vehicles in an arena. (As opposed to remote controlling of course.) I wanted the game to end one of two ways - either after 5 minutes end (simple enough) or when there is one sackboy left standing.

The game ender works perfectly when it is just set to a timer, but I have a problem with the last man standing logic.

My logic is set up so that there is a microchip in the centre of the arena:

Sensor logic: 4 x Player sensors, detecting 1,2,3,4 players present. These are wired to an XOR gate, which then transmits a signal to a tag "Last Man Standing".
Game Ender Logic: "Last Man Standing" AND "Game Start" - Game End.

The game does end if the host is left standing, and all players go to the scoreboard. BUT if the host dies first, they go to the start point whilst the others are left sitting in their controllinators. (Or that is my assumption.) If I walk to the scoreboard however, the other sackboys come to join me, as they would in any normal game if they went outside of camera range.

I tried hooking up the logic which activates the game ender to the controllinator eject, but this did nothing.

My assumption is that I know nowhere near enough about logic to have a clue on this one!

Any suggestions?
2011-02-06 13:46:00

Author:
rialrees
Posts: 1015


The only way I could think of doing this would be to make 4 AND gates and 1 OR gate, the AND gates should have 3 inputs each and the OR gate should have 4 inputs. Lets say your tags are red,blue,green and yellow connect Red,Blue,Green into one AND gate Blue,Green,Yellow into another Green,Yellow,Red into another and finally Red,Blue,Yellow into the remaining AND gate now invert the AND gates this will now recognise which player is the last man standing connect all the AND gates into the OR gate. Now you must make one more 2 input OR gate connect this into the game ender, this system will allow you to award the last man standing and to End the game when there is only one person left. I forgot to add put the 4 input OR gate and the timer into the the 2 input OR gate, I hope this helped contact me if you need a hand.2011-02-06 20:25:00

Author:
MasterCreator
Posts: 464


Ah! Thank you so so much! That works perfectly, and gives points to the last man too - I couldn't ask for more. Thank you thank you thank you!!!! 2011-02-06 21:43:00

Author:
rialrees
Posts: 1015


Ah! Thank you so so much! That works perfectly, and gives points to the last man too - I couldn't ask for more. Thank you thank you thank you!!!!

No, problem! I think that's the first time I smiled today
2011-02-06 22:12:00

Author:
MasterCreator
Posts: 464


You made my day anyway lol. Finally got all the game mechanics down and on the final stages of lobby etc now. so excited! lol!2011-02-06 23:31:00

Author:
rialrees
Posts: 1015


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.