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

Cart Race problem

Archive: 9 posts


I did a cart race which works out great so far. the only problem is the round counter. I want to give it 5 rounds, which also worked.

The problem is as follows. How do I get the round count just from one direction? It counts the rounds when i drive by, but from both sides, which means i can just drive back and forth in front of the sensors which are connected to a counter, and it counts the rounds. How do i have to change it so the sensors just count if i come from the left and not from the right?
Or do i have to use a totally different logic?

Please help, thanks in advance.

edit: If anybody has an idea or wants to have a look at the level and help, please add me on psn (same username)
2011-01-25 16:50:00

Author:
MirkoQuarck
Posts: 66


maybe someone has an idea of a working round count in car races?2011-01-25 16:58:00

Author:
MirkoQuarck
Posts: 66


I did a cart race which works out great so far. the only problem is the round counter. I want to give it 5 rounds, which also worked.

The problem is as follows. How do I get the round count just from one direction? It counts the rounds when i drive by, but from both sides, which means i can just drive back and forth in front of the sensors which are connected to a counter, and it counts the rounds. How do i have to change it so the sensors just count if i come from the left and not from the right?
Or do i have to use a totally different logic?

Please help, thanks in advance.

edit: If anybody has an idea or wants to have a look at the level and help, please add me on psn (same username)

This might get you half way there. I assume you are using a tag switch (or some other switch) to trigger the counter.

Try this. Instead of direct input into the counter, run it through an AND switch. Have a sensor switch on the other side of the level that turns on when you pass it, but turns off when you go past the starting gate. That switch has to be on for the counter to trigger.

This wont stop someone from going backwards, but it does mean you have to go at least half way around the level before you can trigger the counter again.

You get what I'm saying? I'm afraid I didn't explain very well.


EDIT: I think I can stop the backwards as well.

1.= starting gate Sensor
2.= Other side of the track sensor
3.= No backwards sensor.

A.= OR switch
B.= AND switch

1. is wired into B and A
2. is wired into B.
B is wired into the counter
3. is located just a little bit past the gate and is wired into A
A is wired to turn off 2.

So you start the race. You come around the track to 2. which makes it possible to use the counter. But if you go backwards you run into 3. and turn off 2., which disables the counter.. Going through the gate also turns off 2. and disables the counter.

This should work.
2011-01-25 16:59:00

Author:
Biv
Posts: 734


This might get you half way there. I assume you are using a tag switch (or some other switch) to trigger the counter.

Try this. Instead of direct input into the counter, run it through an AND switch. Have a sensor switch on the other side of the level that turns on when you pass it, but turns off when you go past the starting gate. That switch has to be on for the counter to trigger.

This wont stop someone from going backwards, but it does mean you have to go at least half way around the level before you can trigger the counter again.

You get what I'm saying? I'm afraid I didn't explain very well.

I got it and will try it now. thanks a lot
2011-01-25 17:01:00

Author:
MirkoQuarck
Posts: 66


the problem with that is, that the sensors at the beginning and half way through the track are only activated when i'm near it. so i never really get the two sensors activated at the same time....

i think i figured it out.

i connected the two sensors 1 and 2 to an or switch which is connected to an on off switch, which is connected to the counter. should work <---- edit: didnt work
2011-01-25 17:17:00

Author:
MirkoQuarck
Posts: 66


the problem with that is, that the sensors at the beginning and half way through the track are only activated when i'm near it. so i never really get the two sensors activated at the same time....

i think i figured it out.

i connected the two sensors 1 and 2 to an or switch which is connected to an on off switch, which is connected to the counter. should work <---- edit: didnt work


Your right, you need to work some toggles in there. I'm beyond doing this in my head. I have to have the game in front of me.
2011-01-26 00:33:00

Author:
Biv
Posts: 734


Here's what you want to do:

1) Connect counters that count from 0 to 1 (I call them on/off switches) to each of these four tags: START, HALFWAY and REVERSE_CHECK and LAP.
2) Wire the sensor gates to the input of the counter connected to the related tag.
3) Put in tag sensors that have 5000 range for each of the four tags.
4) Wire the HALFWAY and START tag sensors to the input of the LAP tag through an AND gate.
5) Wire the REVERSE_CHECK and LAP tag sensors to the reset of the HALFWAY tag through an OR gate.
6) Wire an inverted reverse sensor gate signal to the REVERSE_CHECK tag reset (this way the reverse check tag turns off when you leave the sensor area).
7) Wire an inverted start sensor gate signal to the START tag reset.
8) Wire the LAP tag sensor to the lap counter input.

This setting should work.
2011-01-26 01:24:00

Author:
Linque
Posts: 607


I just created a super easy way. You can still go back and forth through it, but if you add the halfway checker to turn on the tag in the vehicle, then it's perfect.

Here's the full contraption:

http://i5.lbp.me/img/ft/1557d22b3e30b0e6264f7e249bc0222b089ae4e8.jpg

The green is the way that does count, the red the way that doesn't.

http://i1.lbp.me/img/ft/e41a14a4a4c82a77359fb02754f88426c38f73da.jpg

This is the green holo's microchip. The tags aren't used, I just put them there to tell it apart.

http://if.lbp.me/img/ft/bffc2fec9dd1fc8b670242f6440233149fecd000.jpg

The red holo's chip. Identical except for the tag, which isn't used, as said above.

http://i7.lbp.me/img/ft/8870b77bc2fd9f1df2f2b587898493dd61cb1608.jpg

This is the main microchip, the one in the middle. The timer and NOT gate on the right was there just to turn the holo on to check if I got it working.

The counter on the bottom is set to one, and is inverted. The top of the AND in the middle is wired to the green holo's impact sensor. The incriment of the counter is wired to the red holo's impact sensor.

The AND on the top left is connected to the NOT gates in the two holos. Basically just resets it when you're not on either of them.

The AND in the middle will trigger only if you come from the left, not the right.

All you need on your car is a Blue tag (or whatever color the impact sensor is).
2011-01-26 03:02:00

Author:
Yofig
Posts: 288


I would have done this by creating 3 sensors along the track, finish line, 1/3 complete, 2/3 complete wiring these into a selector with 3 states and only have it increment if the current state of the switch is equal to the area of the track that the car is in.
http://dl.dropbox.com/u/598016/LBP/race.jpg
Please forgive the ms paint graphic
2011-01-26 03:24:00

Author:
Zmathue
Posts: 62


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.