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

Help with Pong Game

Archive: 5 posts


I have all the core mechanics down. Paddles are working fine. Ball is fine. Scoring system is sorted. Now I have each paddle shooting a bullet at the other, I have made it so that they can only shoot for a period before they have to cool down. I want it so that if the opposite paddle is hit, it will shrink. I also want it so that when somebody scores, the ball goes back to the original starting position. Any ideas guys? Cheers.2013-07-18 17:14:00

Author:
NexusDave
Posts: 14


Concerning the ball, when a players scores, you can just make it disappear (with a destroyer) and emit a new one. I would propose two different emitters, depending of who scored so the ball restarts toward a different direction.

For your shrinking pad, it sounds trickier... My first tough was to destroy/emit the whole pad, with, let's say, 3 different emitters: one large, one medium and one small. Each time the ball bounce on it, after 0.5 sec (so the ball don't go through the object being destroyed), the pad disappears, and is re-emitted smaller (or bigger, if you want).
The problem with this method is: you are limited by the number of emitters you put in.

Another solution would be to create a big pad constituted by a lot of smaller parts, that dissolves progressively as the ball hits the "hitbox" of the pad.

Hope that helps!
2013-07-18 21:17:00

Author:
Djibees
Posts: 189


Another solution would be to create a big pad constituted by a lot of smaller parts, that dissolves progressively as the ball hits the "hitbox" of the pad

This is exactly what I did, I have split it into 3. A longish paddle with a square on each end which disappears when hit with the "bullet". I might make it longer.
As for the ball I thought of destroying it and emitting a newer one but the problem is, the microchip has cables running from the ball to an outside factor like the walls, which is not copied over when emitted.
2013-07-18 21:32:00

Author:
NexusDave
Posts: 14


Another solution would be to create a big pad constituted by a lot of smaller parts, that dissolves progressively as the ball hits the "hitbox" of the pad

This is exactly what I did, I have split it into 3. A longish paddle with a square on each end which disappears when hit with the "bullet". I might make it longer.
As for the ball I thought of destroying it and emitting a newer one but the problem is, the microchip has cables running from the ball to an outside factor like the walls, which is not copied over when emitted.
2013-07-18 21:41:00

Author:
NexusDave
Posts: 14


As for the ball I thought of destroying it and emitting a newer one but the problem is, the microchip has cables running from the ball to an outside factor like the walls, which is not copied over when emitted.

There's 2 ways I see of fixing this, 1) Replace all your cables with tags/tag sensors so everything between the ball and the level is communicated wirelessly (depending on how many wires you have this could be really simple or a nightmare!) so option 2) activate a follower on the ball to reset it to a certain position when a player scores, before re-activating the motion of the ball when it reaches this point. This may take a bit more fiddling but should give you the same result.
2013-07-19 00:11:00

Author:
Mopkins
Posts: 123


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.