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

How can a controlled Sackbot shoot projectiles in the direction he faces?

Archive: 9 posts


So what I want to do is have a controlled sackbot that can shoot fireballs or whatever on a level plane in the direction he is currently facing. I do not want want the player to simply shoot in a 360 radius, I know there is a tutorial for that already. What I want is more akin to a Mega-Man game. Is there a way to accomplish this?

Edit: I know this is the reason the Creatinator was made, but for the purpose of my level, it doesn't fit, lol.
2011-01-31 01:54:00

Author:
Lostwind
Posts: 29


How are you currently making him shoot?2011-01-31 02:23:00

Author:
Yofig
Posts: 288


I want him to fire with the R2 button. Right now, he only shoots on his right, but that's only because the emitter is spitting out that way. I want him to shoot in the direction he faces, but recently made a revelation that when sackboy/sackbot stands still, he faces forward. So I don't know if its possible.2011-01-31 02:29:00

Author:
Lostwind
Posts: 29


No, I meant the logic setup to make him shoot. Just an emitter on his circuit board?2011-01-31 03:32:00

Author:
Yofig
Posts: 288


I've been playing with it, I have a pretty clever thing goin at the moment. I have an invisible piece of holo following sackbot, a microchip set to it set to 99% dampening on anti-gravity. I attached a Joystick Rotater to the left stick at full acceleration and rotation speed, and an emitter to shoot the fire balls when I press R2. The holo follows sackbot perfect, and when I move the left stick left, the holo rotates to shoot left, and vice versa for right. My only issue now is that when I shoot to the right, the fireballs work great, but when I shoot left, the fireballs hit the ground much faster than the right, and don't travel as far. I've been trying to center it, but if the fireballs shoot too close to sackbot he gets burned by it.2011-01-31 03:56:00

Author:
Lostwind
Posts: 29


I had the same problem for a bit there. What you have to do is attach the left/right output of the left stick, attach it to a direction splitter, then attach the positive and negative each to a separate counter set to one. Either one resets the other. Then take either of the outputs, and attach it to 2 AND gates. The AND gates activate a different emitter, on left, and one right.2011-01-31 21:31:00

Author:
Unknown User


i just use two emitters and a directional splitter and a couple AND gates and a 2 option selector.
directional splitter chooses the option on the selector which switches which AND gate is getting signal.
Then when you pull the trigger it only activates the emitter that has the AND signal going to it.
The Selector fulfills the same role as the two counters and having two emitters cuts out any moving parts that could screw up.
Also make sure to set your emitters to ignore parent velocity.
2011-01-31 21:46:00

Author:
Deftmute
Posts: 730


The directional splitter method is nice and clean, but if you want to shoot at an angle when you're going up a slope, try using a piece of hologram with a rocket rotator. You can bolt the hologram on to sackbots at the chest/neck.2011-01-31 22:27:00

Author:
Rogar
Posts: 2284


Thanks so much guys, this has been extremely helpful!2011-01-31 22:57:00

Author:
Lostwind
Posts: 29


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.