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

"Scoring system for 4 player versus games". Projectile hits to give points.

Archive: 4 posts


Hi,

I have looked around to save my self some time to figure this out but surprisingly, it has been to no avail as of yet. I'm making my first versus level and am looking for some good methods for individual players to receive scores for connecting bombs with opponents.

To make the question (hopefully) simpler to answer, this is a deathmatch level with vehicles that can fire out projectiles (bombs) to destroy opponents. It will be up to 4 players. Vehicles are controlled by sackboys which sit on controllinators which are set to transmit which are on holograms which follow the vehicles (still with me? ). The vehicles also have controllinaters which are set to reciever and controlled by the controllinater in which sackboy sits.

I want every bomb that hits an opponent to give the player that fired it something like 50 points. And when they take down the energy of the opponent and completely destroys the opponents vehicle, I want them to recieve 1000 points. This seems more complicated then it should've been or maybe I just haven't found the proper logic for it...

What are some good methods to achieve this? Thanks in advance.
2011-05-24 12:22:00

Author:
LFiers
Posts: 161


Hello there,

I never finished any of the versus level I've started, but I've already wonder how to give the score to a specific player. I cannot give you a proper solution, but I can tell what I found when investigating about this issue :

- It's possible to give score to a specific player, the signal that activate the score giver must be owned by the player. You can read a few words about this in the wiki : http://www.wiki.lbpcentral.com/Signal

- Maybe you can try this, but it's quite complicated, there's maybe an easier solution : When a player throw a bomb, the bomb have a "Bomb" tag, and a player Tag ("Player 1 Bomb", "Player 2 Bomb", etc). On the opponents vehicles, there is the impact sensor decreased each time a "Bomb" hit the vehicle, but there's alslo 3 impacts sensors, that emit a "Player 1 score 50 pts", "Player 2 score 50 pts"... tag that last for 0.1 seconds, regarding the bombs that hit the vehicle. On the player controlinator, place a sensor with a large radius that activate a score giver (set to Specific player). If this does not work, you'll have to cheat the score giver (maybe by using a Player sensor on the controlinator with a really small radius). To give the 1000 pts, when the global impact sensor hits 0, instead of directly destroying the vehicle, start a sequencer that emit a "Player 1 score 1000 pts" (or Player 2 , 3 , 4 regarding the bomb that hit the vehicle) then destroy the vehicle.

I hope this help. It's quite complicated and difficult to explain as english is not my native language. An maybe there's easier way to do this.
2011-05-24 13:28:00

Author:
Slurm
Posts: 262


Hello there,

I never finished any of the versus level I've started, but I've already wonder how to give the score to a specific player. I cannot give you a proper solution, but I can tell what I found when investigating about this issue :

- It's possible to give score to a specific player, the signal that activate the score giver must be owned by the player. You can read a few words about this in the wiki : http://www.wiki.lbpcentral.com/Signal

- Maybe you can try this, but it's quite complicated, there's maybe an easier solution : When a player throw a bomb, the bomb have a "Bomb" tag, and a player Tag ("Player 1 Bomb", "Player 2 Bomb", etc). On the opponents vehicles, there is the impact sensor decreased each time a "Bomb" hit the vehicle, but there's alslo 3 impacts sensors, that emit a "Player 1 score 50 pts", "Player 2 score 50 pts"... tag that last for 0.1 seconds, regarding the bombs that hit the vehicle. On the player controlinator, place a sensor with a large radius that activate a score giver (set to Specific player). If this does not work, you'll have to cheat the score giver (maybe by using a Player sensor on the controlinator with a really small radius). To give the 1000 pts, when the global impact sensor hits 0, instead of directly destroying the vehicle, start a sequencer that emit a "Player 1 score 1000 pts" (or Player 2 , 3 , 4 regarding the bomb that hit the vehicle) then destroy the vehicle.

I hope this help. It's quite complicated and difficult to explain as english is not my native language. An maybe there's easier way to do this.

Thanks for the reply. Yeah it's actually a little similar to what I had in mind but wasn't sure it it would register the owner**** of the signal of the player who fired the bomb. Not quite sure what you mean about the "global impact sensor" though. Do you mean my counter which when hits 0 the vehicle explodes? Also not too sure about the "emit a player 1 score 1000 pts with a sequencer" section. How will the 1000 point score giver know which players bomb was the one to give the final blow effectively destroying the vehicle?

I really do hope there is an easier way because there are many other factors of how I have my vehicle and the overall logical foundation of the level i'm making which prevents a method like this from being practical. But any help is much appreciated.
2011-05-24 15:13:00

Author:
LFiers
Posts: 161


This is how I would do it - similar to slurms method.

Put a tag on the bomb that you are using called "bomb." Put an impact sensor on your vehicle that requires a tag called "bomb." Then wire that to a pulse switch (one shot counter wired to it's own reset switch). Then connect that to a score giver and another counter. This score giver will be your 50 points for a hit.

The other counter will be how many times you want the player to be hit before they die. You'll wire this into the BOTTOM input of an AND gate. Hook your pulse switch into the TOP input of the AND gate. The output of the AND gate will go to your destroyer and score giver.

The reason you need the counter to go to the top of the AND gate is to transfer the player data correctly. This should do what you want it to from your description. Any questions, just post again!
2011-05-24 17:48:00

Author:
shane_danger
Posts: 283


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.