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

Creating a score zone and triggering sound effects

Archive: 8 posts


Hi

Please can someone give me advice or direct me to tutorials on the following.
I'm creating a football game and need help with the following:

1. When the ball crosses the line I need a score to show up for the correct player and for the ball to restart in the centre circle.

Again, much appreciation to anyone who can help me please

Thanks

Chris
2011-02-05 11:25:00

Author:
Fatboyslick
Posts: 15


How does the ball cross the line? Being thrown? Being grabbed and pulled across?

You could use invisible hologram to make a little zone behind the goal line and give it a specific tag, then give the ball an impact sensor with the same tag. To give points you just use a score sensor with "Just You" and "Display over player" , and wire that impact sensor into it , as well as a destroyer.

Giving the ball its own unique tag as well, on the playfield have a tag sensor with a large enough radius to cover the playfield that is set to the tag of the ball. Either set it to "Invert output" or feed it into a NOT gate to be able to get a signal when the ball has left the playfield. Then just wire that to an emitter that emits the ball.

Depending on how the mechanics of your gameplay will work, the score sensor will do its best to automatically know who to give the points to.
2011-02-05 11:58:00

Author:
Foofles
Posts: 2278


Give the football a tag and attach the tag sensor to the line. (Or whatever) Attach an object tweaker and set it to disappear and to reappear in the center circle. (Like in the Factory of a Better Tomorrow uhh... Basketball versus minigame) Attach a score sensor and hook up the tag sensor to the score sensor. Adjust points, throw the ball, recieve your points, and the football should reappear in the center circle. Ask questions if needed. 2011-02-05 14:59:00

Author:
FEAR
Posts: 337


Thanks you two.

So, to explain the level a little more, it's a top down soccer/footy game like Sensible Soccer.
There's goals at each end that need to trigger a score and after each goal the ball needs to reappear in the centre circle.

Your help is great do far.

As for "how" the ball gets in the net...well at present the characters/vehicles have to push it.
I really want a kick mechanism on them though....where pressing X kicks the ball but I have no idea what's so ever how to do this!!!!
2011-02-05 15:29:00

Author:
Fatboyslick
Posts: 15


Thanks you two.

So, to explain the level a little more, it's a top down soccer/footy game like Sensible Soccer.
There's goals at each end that need to trigger a score and after each goal the ball needs to reappear in the centre circle.

Your help is great do far.

As for "how" the ball gets in the net...well at present the characters/vehicles have to push it.
I really want a kick mechanism on them though....where pressing X kicks the ball but I have no idea what's so ever how to do this!!!!

2 ways to do this:
Use logic, movers, rotators, etc. (DA NEW WAY)
Use bolts, pistons, etc. (old way)

Basic Steps:
1. Construct
2. Attach Controllinator
3. Test
4. Save
5. Play
2011-02-05 15:38:00

Author:
FEAR
Posts: 337


2 ways to do this:
Use logic, movers, rotators, etc. (DA NEW WAY)
Use bolts, pistons, etc. (old way)

Basic Steps:
1. Construct
2. Attach Controllinator
3. Test
4. Save
5. Play

Cheers....need to learn the new way...is there a tutorial on here?
2011-02-05 15:46:00

Author:
Fatboyslick
Posts: 15


Unfortunately, I do not know any tutorials on the NEW WAY. Try searching for it on YouTube or Google.2011-02-05 16:04:00

Author:
FEAR
Posts: 337


Give the football a tag and attach the tag sensor to the line. (Or whatever) Attach an object tweaker and set it to disappear and to reappear in the center circle. (Like in the Factory of a Better Tomorrow uhh... Basketball versus minigame) Attach a score sensor and hook up the tag sensor to the score sensor. Adjust points, throw the ball, recieve your points, and the football should reappear in the center circle. Ask questions if needed.

Thanks again....how can I get the ball to reappear in the centre...can't figure that out?

Also, I can't get the score sensor to work...I've added a new tag sensor to tge goal line but can't attach it to the score sensor on the ball???

Cheers
2011-02-07 16:36:00

Author:
Fatboyslick
Posts: 15


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.