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

Need some emitter help!

Archive: 2 posts


What I want is to have an RC sackbot that, when the player presses R1, will emit a sponge and immediately grab it and hang onto it as long as the player holds down the button. Then, if the player releases the button, he lets go of the sponge and can immediately emit another sponge if he hits R1 again.

That seems simple enough, I have an emitter wired to the R1 button and it will emit and the sackbot will grab the sponge as intended. But here's the problem I'm having: It works PERFECTLY so long as the sackbot is standing still. But, if he's in the air or in any way moving, he rapid-fire emits TONS of sponges, not really grabbing any of them for more than a fraction of a second! Not good!

I could "fix" the problem by setting a high lifetime for the sponge and turning on "destroy oldest when max emitted reached", but that's not good either because I need the player to be able to emit the sponge at any time, whenever they want, without restriction. So any kind of delay timer won't work for me unless it's instantly overrideable by releasing and re-pressing the R1 button.

I also tried using a timer set to 0.1s and start/stop to try and control the emitter, but the same thing happens. If he's standing still it works exactly as intended, if he's moving, he spews out a rapid fire stream of sponges...

Settings I need to not change:
Speed = 0.1s
max emitted = infinite

It doesn't really matter how long the sponge lives after being let go of, but I'd prefer to keep two or three onscreen for several seconds if possible, rather than have them die immediately, just for aesthetic quality. But obviously I'll trade this nicety for having it function correctly instead.

So I wonder, do I need to set something up where only one sponge can be alive at a time, and RELEASING the R1 button destroys the sponge, allowing me to emit a new one?

Any suggestions on how I can make this work would be greatly appreciated!
2011-02-19 18:41:00

Author:
Boscoe
Posts: 51


Never mind! I just needed to set the emitter to emit once rather than On/Off! 2011-02-19 18:49:00

Author:
Boscoe
Posts: 51


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.