ScratchData LogoScratchData
Back to PullJosh_Test's profile

Earth Pong remix

PUPullJosh_Test•Created August 6, 2015
Earth Pong remix
0
0
42 views
View on Scratch

Instructions

@PullJosh here! Just fixed a couple of bugs. ;)

Description

Fixed the ball bouncing. Here's how: First, I removed a script. There were two scripts running at the same time that were overriding each other (see the empty space below the script in the top left?) Next, I modified the second script - the one on the top right - to have a better bounce script. Turning 180 degrees is okay, but doesn't look particularly realistic. Instead, doing the following makes it bounce perfectly assuming it's hitting a horizontal object (such as our paddle here): point in direction ((direction - 180)) Of course, just leaving it at that can make for a rather boring game. So I added some randomization by up to 30 degrees in either direction using the random number block. Hopefully this was helpful! Let me know if you have any questions or comments. :)

Project Details

Project ID72427120
CreatedAugust 6, 2015
Last ModifiedAugust 6, 2015
SharedAugust 6, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root