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

Need help with a Kill Counter

Archive: 4 posts


Hello, I'm am new and this is my first post. I bought LBP1 middle of last year and had a blast with the creation tools. I recently picked up LBP2 and am amazed at how much more it has to offer. I spend more time tinkering than playing the story, anyway.... I'm having a little trouble with a top down shooter I've been working on for about a week.

Its a pretty standard zombie fest and I want to add a kill counter. I have the counter logic all worked out but I'm having trouble triggering it as all my enemies are emitted. I tried setting a tag sensor to inverted and placing a corresponding tag on the enemies but the problem with that is only the last one triggers the counter. All that said, I guess my question is this...

Is there a way to remotely trigger a switch from an emitted object. Thanks in advance.
2011-02-23 07:25:00

Author:
Unknown User


(I play the game in French so I might get the component names wrong) Here's what I would do :
http://i.imgur.com/l0KKF.jpg
You can also use a sequencer instead of the timer.
Have a tag sensor with a huge detection area named "Kill" and voil?, everytime the destruction is initiated, you can be sure the "+1 kill" counter will be activated.
2011-02-23 10:35:00

Author:
Unknown User


yeh what Phil said. You need to leave 1 game clock tick for the signal to reach the tag and transmit the signal to the sensor before the tag is destroyed.

Oh, and don't invert the sensor, it will of course then only trigger when no tags are left in the game field. Instead have it non-inverted and use the logic described in the above post. Each time (for example an impact detector) recieves a projectile impact, the sigtnal outputing from the sensor should feed into a tag that transmits a true state to the sensor linked to your kill counter, while at the same time have a .1 second timer recieving the same input then going into a destroyer.
2011-02-23 14:36:00

Author:
Epicurean Dreamer
Posts: 224


Thanks for the help guys. I was not aware you can attach a switch to a tag, that was the reason I had the sensor inverted. I knew I was making it harder than it had to be... its working great and I hope to have it published soon. Too many ideas and not enough time to do them all 2011-02-23 18:49:00

Author:
Unknown User


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.