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

3-Point Line?

Archive: 5 posts


Does anyone have any great ideas for how to implement a 3 point line into a basketball game?

The only thing I can think is something like combining player location with the basket sensor, but this is fraught with potential for error.

Player Sensor in middle of court --> TIMER (To account for ball travel time) ---> AND gate, with the 2nd input being the basket sensor.

Even if this worked for a 2 player game, I don't think it could translate to 3 or 4. What if player 3 dunks it, while player 4 is standing in the middle?

Or even if it was just a 2 player game: If a player jumps in the middle to activate the 3 point sensor and THEN comes down, bounces back up, and dunks it, it might register as a 3.


____

So, I think my potential mechanisms are WAY too flawed to implement. Any other ideas?
2011-01-31 19:29:00

Author:
bigkurz8
Posts: 60


What you want to check is that 1: you scored, 2: the ball was thrown from the 3 point line, and 3: nothing touched it in between. Sounds doable.

I'd start with some tests with the impact sensor, for instance, does grabbing a ball with grabinators trigger the impact sensor?
2011-01-31 19:56:00

Author:
Rogar
Posts: 2284


Can't you just put a proximity sensor right on the goal and check to see if the tagged player is outside of the proximity sensor? (in other words it's off?) If you're worried about the player moving into three point territory before the basket hits the goal, you could even emit the tag on a holo. Set it so only one can be active at a time and each time a player shoots, it will automatically destroy the previous "range" tag.2011-01-31 20:57:00

Author:
Shanghaidilly
Posts: 153


You need to use a selector to change between the two states, should be able to do this with a mag key on the far side of the court and the rest of the logic on the ball. Set the mag sensors range so it coincides with the 3-point line. If the ball is released AND the mag key is activated, it activates one of the ports, if the ball is released AND the mag key is NOT activated it activates the second port. You can use those two states to trigger different score givers.

The only trick is to get the grab switch to trigger something when you release the ball, you may have to invert the state with a NOT gate and tie that into a fast timer that counts backward to give you an impulse trigger.
2011-01-31 21:26:00

Author:
Osprey71
Posts: 93


I'll chime in and give my way of doing it as well:

1) Each sackbot should have a BALL CARRIER tag on them that activates when impact sensor (touching) BALL is active.
2) Ball should have a BALL tag on it.
3) The inside area of the three point line should have a BALL CARRIER tag sensor that is wired into a on/off counter's input.
4) The rest of the field should have a BALL CARRIER tag sensor that is wired into an on/off counter's reset.
5) The counter's output should be wired into an AND gate paired with a scoring signal that gives two points.
6) The counter's inverted output should be wired into an AND gate paired with a scoring signal that gives three points.
2011-01-31 21:38:00

Author:
Linque
Posts: 607


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.