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

Counting explosion impacts

Archive: 3 posts


I want to count three explosion hits from bombs on an object without any explosion actually destroying the object. How is this possible? (I want to hit the ground running tonight when I build)

Btw, Sacknight 2a level maybe this week.
2011-03-21 15:19:00

Author:
Hoplyte
Posts: 100


The simplest way is tag on bomb + impact sensor which requires tag, connected to a counter, and connect the counter to a destroyer. Make the object indestructible if needs be.

But if you also want the bombs to be able to roll along the surface of the object without triggering the impact sensor, then you will need to check whether or not the bomb was destroyed. I would glue an invisible piece of holographic onto the bomb, and attach a microchip. (Make sure it doesn't get destroyed by the bomb, I don't know if this requires indestructibility or not). Then put a battery on the bomb and connect it to a NOT gate on the microchip, which you wire up to a "bomb destroyed" tag. Also wire it up to a destroyer to get rid of your holographic (you may need to delay this with a timer, but it should be alright with just the 1 frame of signal). Now on your object, you want the impact sensor to trigger a timer that generates an ON signal for 0.1 seconds (I think start counting down/output inverted will do this, I may be wrong). Then you want a tag sensor to look for the "bomb destroyed" tag. Now connect the timer and the tag sensor to an AND gate, and connect this to the counter.
2011-03-21 15:36:00

Author:
thor
Posts: 388


Hook an impact sensor up to a counter with max 3. When the bomb impacts the object it'll raise it one each time. If it is possible for other objects to set off the impact sensor (like your sackboy for example) put a tag on the bombs, hook a corresponding tag sensor and an impact sensor into an AND gate, then have the gate's output connected to the counter. This will only increase the counter if impacted by the bombs. To make it indestructable use a material that is indestructable, or plonk a material tweeker on it and set to indestructable.2011-03-21 15:41:00

Author:
Xaif
Posts: 365


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.