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

A Couple of Sackbot Questions

Archive: 7 posts


Hey guys, I've been in the process of creating logic for my side-scrolling beat 'em up(think Streets of Rage, Scoot Pilgrim)and have come upon some roadblocks. My two biggest problems are combos and an energy bar.

Right now, I'm using Alic44's attack idea using batteries and sequencers. So for my rudimentary combo idea, I thought at first to use an AND gate, plugging a battery from sequencer 1 into the top and square into the bottom. Then I thought a selector might do the trick and currently have it set up so that square goes into the bottom of the SELECTOR, two outputs, one into sequencer 1 and the second into sequencer 2, and then a battery from sequencer 1 into the top input of the selector to make it toggle back to the first attack after the second attack finishes. The problem with this is that it's always 1 then 2, so if I hit square once, no matter how long I wait, it will always go to attack 2 after I hit square a second time. What system can I create to make it go back to attack 1 if enough time goes by without hitting square again? Probably something with a timer.

And second, I'm using comphermc's health bar in reverse to create an energy bar that once filled allows for a special attack, resetting the bar to zero. The question I have is how can I make the bar go up simply by attacking? Not just hitting in the air, but by actually hitting enemies? Kind of like how in God of War you fill up the rage of the gods meter by attacking enemies, but when you attack nothing, the bar doesn't fill?

I've got other problems, like character balance, but I can figure those out, these are the two that have me stumped. Thanks to all in advance.
2011-04-26 02:52:00

Author:
Unknown User


It would be a lot easier to work through these issues if I could join you, but that's another issue... *ahem*

If you want the player to activate attack two no longer than 3 seconds after attack one (as an example), then you'd need to have the end of the sequencer reset a timer that would count off those three seconds. The timer would be connected to a pulse switch (which is a counter set to one with the output wired back to it's own reset switch) which would go to an OR gate, then the sequencer. The other input to the OR gate would be the current output that goes to selector input..2... i think... I'm a little confused by your description.

As for the energy bar, how do you have enemies taking damage? You could use the same system (probably a tag and tag sensor) to also fill up the energy bar.

Once PSN is back on, I can help you on your moon.
2011-04-26 04:06:00

Author:
shane_danger
Posts: 283


It would be a lot easier to work through these issues if I could join you, but that's another issue... *ahem*

If you want the player to activate attack two no longer than 3 seconds after attack one (as an example), then you'd need to have the end of the sequencer reset a timer that would count off those three seconds. The timer would be connected to a pulse switch (which is a counter set to one with the output wired back to it's own reset switch) which would go to an OR gate, then the sequencer. The other input to the OR gate would be the current output that goes to selector input..2... i think... I'm a little confused by your description.

As for the energy bar, how do you have enemies taking damage? You could use the same system (probably a tag and tag sensor) to also fill up the energy bar.

Once PSN is back on, I can help you on your moon.
i like how you think w logic shane...lol lets make this as complicated as possible so nobody can duplicate it lol say your first attack is square wire that to a counter set to 1 wired to a sequencer that will last how ever long you want to be able to stall for a delayed 2nd attack place a bat on sequencer and wire that your 1st attack animation aswell as an AND gate & a NOT gate that will wire into the counters reset. now wire your next attack button to the other AND input . if you wanted to continue combo you should just be able to rinse and repeat. you will have to however chage a couple wires 4 what resets counters but thats easy just do the fainal attack in the combo
actually youll end up having issues if the player doesnt continue combo..let me think on this and ill get back to ya.
2011-04-26 20:50:00

Author:
Unknown User


i like how you think w logic shane...lol lets make this as complicated as possible so nobody can duplicate it lol

haha, you know how I roll!


say your first attack is square wire that to a counter set to 1 wired to a sequencer that will last how ever long you want to be able to stall for a delayed 2nd attack place a bat on sequencer and wire that your 1st attack animation aswell as an AND gate & a NOT gate that will wire into the counters reset. now wire your next attack button to the other AND input . if you wanted to continue combo you should just be able to rinse and repeat. you will have to however chage a couple wires 4 what resets counters but thats easy just do the fainal attack in the combo
actually youll end up having issues if the player doesnt continue combo..let me think on this and ill get back to ya.

The only problem with your solution is that I think he wants to use square for both attacks. If it was a button combo I don't think there would be a problem in the first place. Though it may be worth it to make the combo like a square - triangle combo. That would actually be pretty cool.

edit: thought about it, your way would work even if it was square again for the attack button.
2011-04-26 21:51:00

Author:
shane_danger
Posts: 283


It would be a lot easier to work through these issues if I could join you, but that's another issue... *ahem* Once PSN is back on, I can help you on your moon.

Amen, brother, Amen.
2011-04-26 22:19:00

Author:
flyinhawaiian
Posts: 357


Many thanks to both shane_danger as well as BabyFace. It is quite a pain not having PSN up and running, but what you two have put together here has given me a few ideas.
I'm still a bit unsure if I can reset the combo, but both of your ideas are much more fluid combo systems.
2011-04-28 20:04:00

Author:
Unknown User


although we dont have psn you should still be able to access your moon...sry i have a lot on my plate w work...im going to get on right now and see if i can work out a solid reset 4 u

ready 4 this...it gets a little complex lol...do everything i told you to do b4... lol you r now done..jk seriously though. wire ur 1st button combo to a counter set to 1. place a sequencer with amount of time you want to allow between button presses. place battery on sequencer on notch shorter than sequencer on both ends wire it to an AND gate as well as an OR gate wired to that NOT gate. then wire the NOT to the reset of the counter. put the secon button sequence it the combo to the AND gate...place that all on a MC...then copy and paste now wire the output of the counter on the second MC To the OR gate on the first MC. the AND gate output on the first chip goes to the input of the counter on the 2nd chip. now you can rinse and repeat w ne combination of buttons aswell as length of combo

you could even mess around w timing of button presses like say you want 1 particular button 2 b pressed imediately after the 1 prior. well make the battery shorter actication time aswell as tinker w the time per line on the sequencer. or you want the player to have to wait to press 4 precise timing place a small battery later in position on the sequencer fun stuff...ideas are churning (tekken 10 hit combos) precision precision precision
2011-04-29 10:37: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.