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

Toggling To Different Weapons With One Button

Archive: 12 posts


I have two questions. First, I am creating a sackbot similar to megaman, who can fire his main basic energy blast, but also toggle between other different types of energy blasts. I would like to press triangle to toggle between different weapon types. Can someone assist me on how to toggle from my main weapon to other weapons using the triangle button?

The other question is this: I use the global gravity tweaker in the sackbot microchips to do some pretty awesome looking jumps with my sackbot. But I just thought about the fact that it's a GLOBAL gravity tweaker. So, if I have that hooked up to the jump button, am I changing the global gravity settings for the entire level every time I press jump? If so, is it enough to make a difference. Each jump lasts for no longer than 1 to 2 seconds. thanks.
2011-02-19 07:57:00

Author:
rambo3416
Posts: 179


First question: You cant do it that way, sorry

But u could make a booth, where you go in and change your weapon. It's much cooler when you cant see then weapon itmitter
2011-02-19 08:05:00

Author:
PixelJam
Posts: 88


What exactly do you want to be able to do to select a weapon? If I'm understanding you right, then what you want is to hook a selector into each of your weapons, and then hook the triangle button into the "toggle" input of it.

As for the second one, it'd depend on how much stuff you have that can potentially be in freefall.
2011-02-19 08:06:00

Author:
Speed Racer
Posts: 156


Thanks. That sounds right. Thanks for the info2011-02-19 08:35:00

Author:
rambo3416
Posts: 179


Speed Racer is correct with the first one - a Selector to choose where you are selecting or moving about

...And for two, its simple - Don't use a Global Gravity Tweaker, use a Material Gravity Tweaker (I'll assume your using SackBots?)
2011-02-19 08:36:00

Author:
Nurolight
Posts: 918


Kind sir, did u figure out the toggle issue?
I have run into the same thing.

I want to toggle between weapons and have them all controllable by the R2/Right stick arm aiming method.
2011-02-27 15:45:00

Author:
joeharkum
Posts: 38


Use an AND switch for each weapon. Hook the AND switches to the weapons.
Hook up whatever you use to fire a weapon into an AND switch. Then get a selector and put each output into an and switch. Hook up triangle to the cycle.
2011-02-27 15:51:00

Author:
DarrienEven
Posts: 217


So where does R1 come into play again?
So if I have 8 weapons = 8 and switches? But one selector with 8 outputs? where should I connect R1 (fire button) to?
2011-02-27 16:09:00

Author:
joeharkum
Posts: 38


So where does R1 come into play again?
So if I have 8 weapons = 8 and switches? But one selector with 8 outputs? where should I connect R1 (fire button) to?

Selector has 8 outputs, each connecting to one of the 8 AND gates.

Each AND gate connects to a different weapon.

Triangle connects to the toggle input on the selector

R1 connects to all 8 AND gates.



Triangle > Selector
> AND gate > Weapon firing
R1 /
2011-02-27 16:27:00

Author:
munrock2
Posts: 96


Thanks for both explanations !
Cheers
2011-02-27 18:17:00

Author:
joeharkum
Posts: 38


the system worked but the emitters shots do not correspond to where I am aiming - do I just recalibrate where the bombs shoot? I have the emitter emit straight above the sackboys head. This used to work until I used the toggle system2011-02-27 23:16:00

Author:
joeharkum
Posts: 38


put a joystick rotator on the material that the emitter is attached to.2011-03-01 16:39:00

Author:
Speed Racer
Posts: 156


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.