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

advanced logic help

Archive: 8 posts


heya everyone, i need some help with some logic, i want to try and make logic that can pick up how fast i move the left stick i know how to pick up when im moving left or right but i want to try and make a way so i can tell if your going a walking pace or a full running pace (not on a sackbot but on a object moving from a conrtolinator) i played a level which i know would help me but i looked through my recent activity and cant find it :/ anyways hope someone can help and thanks if you can 2012-03-09 14:17:00

Author:
Unknown User


You could use a speed sensor wired to a positional sequencer.

Place batteries appropriately on the positional sequencer to detect different speeds.
2012-03-09 14:26:00

Author:
Ayneh
Posts: 2454


ok so far i got a basic kinda not very working way of doing it, i got a speed timer and a forward and back timer and if you move it slowly only the speed one will fill up but i found out if you hold it full then move slow without coming of the stick the forward and back one still goes? then i tried sticker material and a piston with 2 speed sensors on it one set to slow and the other set to a higher speed, this seems to work alot better but due to the piston cant go forever it has to do the flipper thing which cases the speed sensor to get confused for a sec or no flipper and it slows down before coming back... i hope this might help people understand what im trying to do now and if anyone can enlighten me on the subject that would b a huge help to me thanks and to try and explain it abit better i basically want a constant out put when the left stick is pushed a little bit and another constant out put for when the stick is pressed fully but for both left and right directions

ahh thank you ayneh! i thought the speed sensor had to be on a object lol ill try that now!

edit - ok i tried but i think i got confused lol what do you mean exactly by a positional sequencer? and how do i make the batteries and speed sensor to interact?
2012-03-09 15:07:00

Author:
Unknown User


http://www.youtube.com/watch?v=JXJzQrsGxpc&feature=related

This doesn't explain it directly, but it should help you understand how to use timers and sequencers. Just hook the timer up to the speed sensor and do what it says here.
2012-03-09 16:38:00

Author:
kirbyman62
Posts: 1893


what do you mean exactly by a positional sequencer?
Where a sequencer is set under its input action to be positional. Hook it up to an analogue stick to see what it does.


and how do i make the batteries and speed sensor to interact?
The batteries go on sequencer. If you didn't already know, you can stretch batteries across the width of a sequencer by pressing up on the right analogue stick.

If running speed is equal to 10 and walking speed is equal to 2 stretch the first battery across 1/5 of the sequencer and a second battery across the remaining 4/5. The first battery will activate when the signal is ≤ 20%, any higher and the second battery will activate.

The maximum speed under the speed sensor tweak menu should be equal to the maximum speed you anticipate the object to travel in order to use the full range of the positional sequencer.
2012-03-09 16:46:00

Author:
Ayneh
Posts: 2454


obiously didnt got it right... lol2012-03-09 16:50:00

Author:
zupaton
Posts: 167


i have a sensorchip that will check how fast the power of a signal ( how far the stick is moved) changes .
It works perfectly with the time of 1 second and does this every 0.2 seconds but i think itll work with smaller timedistances either
if you are interested you can message me
aleparad
2012-03-09 17:19:00

Author:
aleparad
Posts: 28


Hesido's got a great piece of logic for measuring the change in analog signals every frame. It's a bit long and the methods might seem strange, but it works perfectly.


http://www.youtube.com/watch?v=carMluSV-EM

I couldn't figure out for the longest time why he was using xor's like that and not ANDs or activate microchips.

Anyway, I assume you want to keep the signal when your stick reaches one end. If you want, I can build the logic to do that for you.
2012-03-10 06:05: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.