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

Need Help With an Emitter Question

Archive: 5 posts


Ok, so I am currently in the design phase for a level I am going to build, and I have come across a problem that I (as a new creator) cannot solve. I want an emitter to emit, say, a fire ball when my sackbot (controlled by a player) presses a button. But I also want the same emitter to only be able to emit a set number of fireballs. Once the max, say 3, is emitted, I want to disable the emitter until an object is collected to refill the 'mana pool.' The object will have a tag (I assume) and a sensor set to that tags color to somehow reset the counter or whatever I need to do this.

Is this idea even possible? If it is, does anyone know of a tutorial to point me in the right direction? Thanks for your time and help in advance.
2011-02-01 01:49:00

Author:
Unknown User


You can use a counter object to count the amount of fireballs you want to have emitted, then when you emit one, reduce the counter count by 1. When you reach the 'reset mana' object, just use a tag sensor to reset the counter.2011-02-01 02:10:00

Author:
NSArray
Posts: 1


You can use a counter object to count the amount of fireballs you want to have emitted, then when you emit one, reduce the counter count by 1. When you reach the 'reset mana' object, just use a tag sensor to reset the counter.

When the counter is empty, will it cause the emitter to no longer work? Or is there other logic needed coming from the counter between it and the emitter?
2011-02-01 02:11:00

Author:
Unknown User


As I tought, someone answered before I finished my answer... here
Never ask is it possible, always ask how hard, because LBP2 can do ANYTHING YOU HEAR !
I've not tried enough with LBP2 logic yet, and even myself need help, but I know your thing needs a COUNTER logic, and possibli a NOT gate... WAIT I GOT IT !
Hook a button from the controlinator to an AND gate, and hook the gate to the emmiter (set it to one-shot). We want to make the emmiter shoot if you press a button AND if there is mana in the mana pool. Let's create a mana-meter. Put a COUNTER on the microship. Link the same controlinator button to the input. This will make the counter go up each time you shoot. Next, hook the counter's output to a not gate, and the not gate to the second input of the AND gate we placed before. Now the emmiter works everytime you press the button if the meter is NOT full (that's the use of the not gate). Finally, add an inpact detector and give it a label. Hook it to the reset function of the counter (under it). Give a magnetic key to your power-up's microchip, and give it the same label. Here, I'm in a good mood

Here is a pic, my image host is not working, so here is a facebook link, sorry
http://www.facebook.com/photo.php?pid=376211&l=d2f5d1938e&id=100000987300220

EDIT
I'm not sure about it, but is there a countdown option on counters ? if yes, just make it a countdown instead of a not gate.
2011-02-01 02:28:00

Author:
Unknown User


As I tought, someone answered before I finished my answer... here
Never ask is it possible, always ask how hard, because LBP2 can do ANYTHING YOU HEAR !
I've not tried enough with LBP2 logic yet, and even myself need help, but I know your thing needs a COUNTER logic, and possibli a NOT gate... WAIT I GOT IT !
Hook a button from the controlinator to an AND gate, and hook the gate to the emmiter (set it to one-shot). We want to make the emmiter shoot if you press a button AND if there is mana in the mana pool. Let's create a mana-meter. Put a COUNTER on the microship. Link the same controlinator button to the input. This will make the counter go up each time you shoot. Next, hook the counter's output to a not gate, and the not gate to the second input of the AND gate we placed before. Now the emmiter works everytime you press the button if the meter is NOT full (that's the use of the not gate). Finally, add an inpact detector and give it a label. Hook it to the reset function of the counter (under it). Give a magnetic key to your power-up's microchip, and give it the same label. Here, I'm in a good mood

Here is a pic, my image host is not working, so here is a facebook link, sorry
http://www.facebook.com/photo.php?pid=376211&l=d2f5d1938e&id=100000987300220

That was an awesome tutorial and I am sure it will work exactly how I need it to. Thanks a bunch to everyone who helped out.
2011-02-01 02:32: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.