im trying to make my first ping pong game i got it all down except for getting the ball to hit the platform it just goes straight through ive done the building block interect with spirte no. need help please
Offline
You probably should change the way the ball of facing when touching sprite one. Even though you can't see a ball then, that should (hopefully) reverse it.
Offline
Try looking at:
http://wiki.scratch.mit.edu/wiki/If_on_Edge,_Bounce_(block)
It will tell you how to write a script that mimics the effect of the if on edge block and could be used for your ball when it is touching your bat.
Last edited by Smozzick (2013-03-06 07:18:29)
Offline
is there any way i can send my porject to you so you can help
Offline
This would be a full solution if you want one:
Link to Project
One Solution
Couldn't get the blocks to show correctly >.>
[-scratchblocks-]
When gf clicked
if <touching [sprite3]?>
if < <(direction) > [89]> or < <(direction) < [0]> and <(direction) > [-90]> > >
point in direction <(direction) - [90]>
else
point in direction <(direction) + [90]>
end
[-/scratchblocks-]
I'll upload a remix so you can see this.
Last edited by Smozzick (2013-03-06 07:29:56)
Offline
liamperry11 wrote:
is there any way i can send my porject to you so you can help
If you go ahead and upload it, then someone could download it and change it, then upload it again as a remix.
Offline