Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
A selection within a selection
Archive: 7 posts
Hello everyone - I'm making a multiplayer arena game called "Arcanists" and I've been getting along pretty well except for the fact that it requires some INSANE logic. Basically I have 8 hologram circles following the player wherever he walks - using a follower. Each of those circles have an empty space and, when the left and right buttons on the d-pad are pushed, something shows up in each of them. A close-up camera angle is also shown for each of them. -BUT- I want to be able to press a button and make an effect happen - but a different effect depending on which circle is chosen. a.k.a. press X and make an emitter emit a fireball from one or a bomb from another. Any help? Or add me ingame :3 | 2011-08-22 21:48:00 Author: Julianotis1 Posts: 110 |
So the basic idea here, ultimately, is that you have eight emitters that generate different objects. Your goal is to trigger only one of them at a time based on a selection. Essentially, each emitter operates under the condition "if the button is pressed and this is the active emitter, emit". That can be easily achieved in logic by creating an AND gate for each emitter and a selector that indicates your current state. First you make eight two-input AND gates and attach their outputs to your emitters. Then wire the X button into the first input of each AND gate. Make an eight-port selector and connect its first output to the first AND gate, the second output to the second AND gate, and so forth. That's all it takes to make the X button fire different things at different times. The remaining work is all in changing the state of your selector. Working through your list of powers is easy thanks to the selector's cycle input. If a positive signal comes in it will move down to the next ability while a negative signal will return to the previous. Luckily, the left/right d-pad output on the controllinator already sends a positive signal for right and a negative signal for left: just plug that output into your selector's cycle input! It's really that simple! Now you've got eight powers activated by the X button and switched around by the left and right buttons. I'm not entirely clear about the visual design you're attempting, but it should be apparent by now that you can use the output of your selector to dress up whatever hologram indicates your active ability. I hope this gets you headed in the right direction. Good luck! | 2011-08-22 22:43:00 Author: Uncuddly Posts: 237 |
You will probably want a whole lot more to happen after you have selected and confirmed a circle, right? Use a selector (hence it is called this way) hooked up to 8 different microchips. Stuff everything that needs to happen (circle selection, effect when confirmed, tags set, stuff emitted) with an individual circle selected on its corresponding microchip. | 2011-08-23 08:49:00 Author: Antikris Posts: 1340 |
Yes, never underestimate the usefulness of dedicated chips, and remember that you can turn whole sections of logic on/off if in a chip, maybe you want a battery to be on/off for example, just put it on a chip! | 2011-08-23 14:17:00 Author: CloaknBlagger Posts: 78 |
My only question is, how do you get the X button to do one thing regularly (ex: jumping) but get it do to something else at a different time (ex: selecting one of the circles) | 2011-08-23 18:28:00 Author: Julianotis1 Posts: 110 |
My only question is, how do you get the X button to do one thing regularly (ex: jumping) but get it do to something else at a different time (ex: selecting one of the circles) Multiple remote control controlinators. You can disable 'em by wiring a sustained signal to the bottom of them, but I prefer to stick em on a separate microchip and activate the chip (it is more intuitive). Have one next to that selector and when the circle selection stuff has to go on, activate it. Have a wire from that controlinator (the X output) lead to the logic of every of those circle chips. The one currently activated by the selector will do something with your X signal. | 2011-08-23 19:08:00 Author: Antikris Posts: 1340 |
My only question is, how do you get the X button to do one thing regularly (ex: jumping) but get it do to something else at a different time (ex: selecting one of the circles) Well, you get 1 sackbot right? Make a holo with a follower to a tag on the sackbot and a transmitter controlinator, then put 2 controlinators on sackbot: 1 is receiver and no override, one is no receiver and override. Wire all buttons from receiver no overrude to the same ones from no receiver override except X, then get a selector, do the cirles and stuff and make the jumping mode selector port wire to an and gate which also has x from receiver no override wired into it, wired into no receiver override. | 2011-08-24 22:59:00 Author: NcLc2010 Posts: 72 |
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.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.