Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Random sequence generator
Archive: 3 posts
I wager there's a way to do this, but I'm still feeling my way through the logic... I am programming an enemy sackbot. I would like for him to do three seperate action sequences A, B, and C. However I would like those three sequences to be randomly carried out. The trick is that I would like the randomizer to choose the next sequence once the previous sequence is complete. I realize the randomizer has min/max on and off time that can be set. However each sequence takes a unique amount of time. so the randomizer will switch either too early or too late, causing the sequence to end or loop depending on the setting. How can I have these three sequences start individually, randomly and switch only when the sequence is complete? Hopefully I worded this correctly. | 2011-02-07 00:40:00 Author: ghostingalong Posts: 17 |
The Randomizer has an Override Pattern setting that disregards the timings and the patterns and just Randomizes whenever a new signal is sent to it. So at the end of each of your behavior sequences (are you using a sequencer or just three separate sackbot behavior modifiers?) send a brief signal (battery on a sequencer - or a set/reset switch) into a 3-input OR gate and the OR gate into the Randomizer (with the Randomizer set to the aforementioned Override Pattern setting). I hope this helps. | 2011-02-07 05:53:00 Author: v0rtex Posts: 1878 |
The Randomizer has an Override Pattern setting that disregards the timings and the patterns and just Randomizes whenever a new signal is sent to it. So at the end of each of your behavior sequences (are you using a sequencer or just three separate sackbot behavior modifiers?) send a brief signal (battery on a sequencer - or a set/reset switch) into a 3-input OR gate and the OR gate into the Randomizer (with the Randomizer set to the aforementioned Override Pattern setting). I hope this helps. that's exactly what i needed. thanks so much. | 2011-02-07 18:33:00 Author: ghostingalong Posts: 17 |
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.