Home LittleBigPlanet 2 - 3 - Vita - Karting LittleBigPlanet 2 [LBP2] Help!
#1
Help with a counter going up and down
Archive: 8 posts
OK so I have a direction combiner going into a counter so I can increase the count with the positive on the dir combiner and decrease the count with the negative. I'm increasing the count when one object touches another with an impact sensor, and I'm decreasing the counter with a button press from the controlinator. The problem is if I press the button to decrease the count right before the impact occurs, what should happen is the counter goes down then back up, but what is happening is the counter goes down 2. It works as expected all other times except for when the positive is activated within an extremely short amount of time right after the negative. Since one is a button press and one is an impact, it's possible that they are even being activated at the exact same time, but because I'm relying on my eye hand coordination to see if one is activated first or they are at the same time, it's hard to tell sometimes. Any suggestions or is this just an unfortunate latency effect of the direction combiner and counter? | 2011-04-16 03:17:00 Author: riverad08 Posts: 104 |
The problem is if I press the button to decrease the count right before the impact occurs, what should happen is the counter goes down then back up, but what is happening is the counter goes down 2. Tough to tell without seeing the exact configuration, but it may help to pre-process the input signals into single-frame pulses. Feed each of the two signals through a counter set to max=1, with output wired to reset before feeding them into the direction combiner. | 2011-04-16 17:06:00 Author: Aya042 Posts: 2870 |
Maybe you should put a speed scale timer............... I could help if youd like | 2011-04-16 20:09:00 Author: Unknown User |
Use a speed scale timer for what? How do you mean? | 2011-04-16 20:24:00 Author: riverad08 Posts: 104 |
Instead of a counter, if you go on in about forty-five minutes I'll show you my bar..... | 2011-04-16 20:27:00 Author: Unknown User |
Tough to tell without seeing the exact configuration, but it may help to pre-process the input signals into single-frame pulses. Feed each of the two signals through a counter set to max=1, with output wired to reset before feeding them into the direction combiner. I tried that and I think it worked. At least from what I can tell. I tried several times to recreate the problem in play mode and I can't. I can't believe I never thought of that. I'm using tons of those pulsers in the rest of the level, it makes sense to use them for this. Thanks Aya And if you want to see what I'm talking about, it's in the level in my sig. I just republished with the fix. You should watch the how to play tutorial so you know what your doing. The counter is the counter of 3 for bombs. You can only hold up to 3 bombs so if you already have 3 and another bomb upgrade is falling sometimes you'll want to just use one, before you pick up the one that is falling. That's where I was having the problem. And thanks for the suggestion I Love Logic, but it looks like I wont be having to try the speed scale timer. | 2011-04-16 21:13:00 Author: riverad08 Posts: 104 |
Yeah, your welcome for the suggestion. I'm working on a topdown level, where when you attack, there's an arm that swings, then shoots. I can show it to ya if you add me . I'd also like some general ideas and/or improvements/suggestions for it. Like some special attacks and stuff | 2011-04-17 03:25:00 Author: Unknown User |
Ok I'll add you. I'll be on tomorrow evening. | 2011-04-17 05:24:00 Author: riverad08 Posts: 104 |
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.