Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Everything Else LittleBigPlanet 2
#1

Can you create a Multi button sequence controllenator?

Archive: 10 posts


Is it possible to create a controllenator with multiple button presses to operate something? If in need for more buttons.

So for example if you hook X up to jump and R2 up to switch some lights on. Can you make it so if you hold R2 then press X it does something else like a horn noise for example.

Also isit possible to do like a multi button sequence like a beat em up is. pressing say 4 or 5 buttons in the right order for example X, Triangle, O, O and timing it correctlydoes some special move or whatever you want.

Hope this makes some sort of sense to you.

Thanks
2010-11-09 12:34:00

Author:
dirts7970
Posts: 74


It sounds completely possible to me.
I could probably work a way, but, I've never used LBP2 and It's pretty late so I'd make a mess of it.
2010-11-09 12:37:00

Author:
SR20DETDOG
Posts: 2431


Yes. For the first part of your question, I built something like this already. I used a separate controlinator with different labels, so even the button descriptions at the bottom of the screen change to reflect the new meaning of the button. For the second part, I haven't made this, but I have a password checker microchip that looks for certain sequences in button input, and that's basically the same thing.2010-11-09 13:00:00

Author:
Rogar
Posts: 2284


awesome!

gota love logic in lbp!!
2010-11-09 13:03:00

Author:
dirts7970
Posts: 74


Yes. For the first part of your question, I built something like this already. I used a separate controlinator with different labels. So even the button descriptions at the bottom of the screen change to reflect the new meaning of the button. Ahhhh, I was planning on testing this sometime this week - is this a case of transmitter / receiver pairs, where switching the receiver around changes the prompts? Do we know what happens with conflicts?2010-11-09 13:04:00

Author:
rtm223
Posts: 6497


Yup. All receivers are in a microchip so you can turn them off at will. You do have to be careful with the button that switches from one receiver to the other. Because of the order in which logic is evaluated, it is possible to receive a new key press when the player was actually holding it pressed. This cost me a lot of time on my BCC03 entry. One way to avoid it is to have a separate controlinator with no labels which is always on. (I'm starting to use more and more controlinators, one for each function, because it's much easier to work with. There's a thermo danger, but for now I'm getting away with it.)

Conflicts are uhm... not entirely predictable. I thought the first created receiver got the label, but I've also seen it flip from one label to the other while it was on screen. Best to avoid them.

Edit: Oh, it may be obvious from the first paragraph, but there's no conflict with labelless controlinators.
2010-11-09 13:13:00

Author:
Rogar
Posts: 2284


Because of the order in which logic is evaluated, it is possible to receive a new key press when the player was actually holding it pressed.

Do you mean the issue that if you press R2 to activate DCS2 and are holding x down, and x is routed to an edge-trigger inside DCS 2, then the rising edge will be seen and trigger? This isn't really anything to do with LBP logic, that's exactly how things work in the real world as well (like what happens if you don't clear down your interrupts before enabling them)...

But yes, it is an issue, but not one that should cause too many problems once you are aware of it
2010-11-09 13:25:00

Author:
rtm223
Posts: 6497


No, I mean the issue that when you route the X button from both receivers through an OR gate on the main board, you still get a rising edge.2010-11-09 13:45:00

Author:
Rogar
Posts: 2284


Ahhhhh, yeah. My favourite LBP2 bug Really looking forward to the fix on that one. For reference, it's avoidable currently by instantiating all components in the order you want them to update.


Unless there is an extra delay between dcs enabling and the signal coming out of it going high, but that shouldn't be the case, it's not for microchips...
2010-11-09 13:50:00

Author:
rtm223
Posts: 6497


No, it was ordering alright. It only had the edge when switching to from receiver A to receiver B, the other way around worked fine.2010-11-09 14:04:00

Author:
Rogar
Posts: 2284


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.