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

Boss Attack Pattern Help

Archive: 8 posts


I was wondering if anybody could help me with my boss logic? Here's what I'm doing, I have a sackbot boss fling around the stage in a pattern firing at you. This works fine, the problem is when I switch the pattern to different one the pattern gets messed up. I was wondering if anybody knows how to fix the timing? Thanks in advanced.2011-03-23 00:49:00

Author:
Unknown User


You might need to be a tad more specific, I'd be happy to see what you're working on, give a little help. 2011-03-23 02:30:00

Author:
Phazerz123
Posts: 440


You might need to be a tad more specific, I'd be happy to see what you're working on, give a little help.
Yeah - that's entirely too vague for anyone to able to help you. What is the current pattern? What are you changing it to? What technique are you using for the patterns (i.e. timers, sequencers, tags, etc.)?

Perhaps if you posted some pics of what you have and what's messing the patterns up...
2011-03-23 04:02:00

Author:
v0rtex
Posts: 1878


Sorry, I thought I had enough information. I try to explain it better. The boss logic is like this:

1) when you start the level it activates a looping timer which is connected to a selector.
2) the selector selects each micro chip with the attack pattern on it.
3) the chips follow tags on the wall in a certain order. (all tags are labeled)

The above logic works, but when it goes though the cycle it it doesn't do every pattern fully. I can post pictures of the logic, if necessary. Hope this helps.
2011-03-23 06:03:00

Author:
Unknown User


What do you mean it doesn't do every pattern fully? Open each Microchip and test what the sackbot does, you should be able to see and tell what gets activated and what doesn't. At first glance it sounds like a timing issue, I think. Do you have a reset system in place when the rest of the microchips get activated, or are the patterns supposed to mix?2011-03-23 06:28:00

Author:
MonarioBabii
Posts: 128


Your selector setup sounds like the right approach, except that you have it hardwired to a timer. If you cannot guarantee that a pattern is fully walked through within the time set on the timer, then it will be interrupted; what you can do instead is using sensors to detect whether a certain location is reached (or other methods to verify the pattern is completed) and switch selector states based on that. If needed you can put these sensors on the state chips as well, or, if only one pattern is supposed to have a time duration, put the timer on that chip only. Putting state switchers on the state chips themselves prevents patterns being fired out of sequence (unless that is what you want).

Lastly, if there is a chance that the boss might mess up and never complete a pattern (getting stuck somewhere), you may want to have a timer to switch patterns as a backup. In that case we are talking about OR gates that feed into the selector inputs and are fed by the pattern changing signals I talked about one paragraph above and a long backup timer.
2011-03-23 06:59:00

Author:
Antikris
Posts: 1340


Sorry, I thought I had enough information. I try to explain it better. The boss logic is like this:

1) when you start the level it activates a looping timer which is connected to a selector.
2) the selector selects each micro chip with the attack pattern on it.
3) the chips follow tags on the wall in a certain order. (all tags are labeled)

The above logic works, but when it goes though the cycle it it doesn't do every pattern fully. I can post pictures of the logic, if necessary. Hope this helps.

Instead of a timer, lay your attack patterns out on sequencers. then have a battery at the end of the sequence that activates the next port on the selector, and starts the next sequencer. Have each port on the selector reset the previous sequencer.

So port 1 activates and runs sequencer 1. Sequencer 1 finishes activating the battery that triggers port 2 on the selector. Port 2 on the selector becomes active starts sequencer 2, and resets sequencer 1 so it is ready for the next time it gets activated.

That will be far more reliable than trying to use timers.
2011-03-23 13:15:00

Author:
tdarb
Posts: 689


Thanks for the replies. I got it to work a lot better by fixing the timer on the selector. I will try all solutions to see what works best.2011-03-23 20:12: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.