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

Sackbot Temporarily Sprinting

Archive: 9 posts


I was messing around with sackbots for my next project. Figured it would be more interesting to make a player control one of those because it can give the creator more control and also let you add more things your normally couldn't. In short, make the level much more interesting.

So I was attempting to make the sackbot "sprint" when you hold L3 but only for , let's say 4 seconds. I had attempted some logic to get this earlier but was having trouble. I figured the sprint would have to be a behavior chip, keep everything the same as the primary one except just crank the movement speed up to 150%.

I had attempted to use a timer / toggle / AND / NOT gates. Some variations around those mainly, couldn't get anything to work. I got one set up to work for one sprint. But it wouldn't work again from how I had it set up.


So to clarify I want you to hold L3 for how long you want to sprint. But it only allows you to sprint for 5 seconds. And you have to wait an additional 10 seconds on top of that before you can sprint again.

I'm guessing I'll need two timers because of that and probably one NOT gate at least but can't quite seem to piece it together.
2011-02-12 04:28:00

Author:
Hamsalad
Posts: 2551


ooohh complicated..
get a dirction splitter, hook that up with 2 diffent counters(1x) that reset each other then connect them to 2 different movers, a Left and a right direction
between the counters, have an AND gate ,which has the inputs on L3

counter->AND gate--> mover(left)
L3--------->^

Edit : then put some timer with 4sec in DIRECTIONAL mode
and use L3 output and another L3 output NOT gate
connect that timer to the AND gate also
2011-02-12 04:35:00

Author:
sonofbrave
Posts: 107


no no no this is very easy. First get a sackbot, then open the grid. Now use a mover and set to the analog stick. There you go problem solved
Message me if you have any more questions.
2011-02-12 04:43:00

Author:
fireblitz95
Posts: 2018


no no no this is very easy. First get a sackbot, then open the grid. Now use a mover and set to the analog stick. There you go problem solved
Message me if you have any more questions.

I don't have much experience with the mover yet, which is probably why I'm having this problem. You make it sound pretty easy. Will your solution account for the sprint cool down and limited sprint timer I wanted to implement too?
2011-02-12 05:03:00

Author:
Hamsalad
Posts: 2551


Yes it should if you attach one to both analouge sticks, using them Both simultaneously to control direction2011-02-12 06:46:00

Author:
fireblitz95
Posts: 2018


i made the dashing logic
err do u want it to be a set time before u can use it again?
2011-02-12 16:27:00

Author:
sonofbrave
Posts: 107


Yuk yuk yuk ! New LBP logic user spotted ! Movers will make you Sakbot slide without walking, and it would be way to hard to control AND ugly. Don't listen to who said to use movers !

You were right about using the behaviour chip but you have to know one thing : behaviour chips are only one-shot. If you just stop sending the signal after a while, the sackbot will still stay with this behaviour. You have to activate the default behavior to make the bot be slow again. I'm not that good with timers, let's try something...
By the way, holding L3 while using the stick is lame, L3 is great for one-shot things. You don't want the player to hold it, but only to press is and then run for 5 secs. Again, we tend to press L3 while using the stick, so use another key. Why not L1 ?

First, make the button reset a timer. This timer is set to "power" and is activated by a battery. The output of the timer goes to a not gate. As long as the timer isn't full again, the sack will run. Hook the timer to the default behavior (the TIMER, not the NOT gate). Hook the not gate to the run behaviour. Now all there is to figure out is the reload time. Place a timer and hook its output to a and gate, and hook the button to the other AND input. If the reload timer is full and the player presses the button, it should reset the run timer. Take the AND output and make it reset the first timer we placed, replacing the connected button. Not all there is left is setting the first timer to 5 secs and the second timer to 10 secs, then we have to make the second timer always counting up with the battery already in place.

If you want the reload to start as soon as the running is over, just take the first timer's output and use it as the second timer's reset.

Draw what I told if it ain't clear !
2011-03-07 01:54:00

Author:
Unknown User


I find that movers are still much less complicated for us who aren't the greatest with logic.....no offense.2011-03-07 23:00:00

Author:
fireblitz95
Posts: 2018


I created sprint logic that works like a charm. It's smooth and glitch free. The only thing is, I like it so there's no delay in between sprints. I can sprint for three seconds, but can do it again immediately. That's just my preference. Here's the directions below. Hope this helps:

1.Place an AND GATE onto a microchip
2.Plug the sprint button and left analog into AND GATE input
3.Plug AND GATE into Direction Splitter
4. Place 2 Timers on microchip for each Direction Splitter output
5. Plug each Direction Splitter Output into Each Timer Input and Reset.
6. Set the Timers to on/off and inverted. Set the Timer for however long you want to Sprint.
7.Place 2 AND GATES for each Timer Output.
8. Plug Each Timer Output into one AND GATE input each. For the other AND GATE inputs, plug in the direction splitter outputs.
9. Place two basic movers for left and right movement. Set the movers for how fast you want to sprint.
10.Plug the AND GATES in step 8 into the movers.

You can also plug these AND GATES (step 8) into any sound effects and emitters you want to use. Emitters can emit fire or smoke or something to make him look like he has powers. Hope you can understand it.
2011-03-08 00:40:00

Author:
rambo3416
Posts: 179


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.