This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-06 06:53:23

liamperry11
New Scratcher
Registered: 2013-03-06
Posts: 3

spirte

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

 

#2 2013-03-06 07:04:36

ChadtheBuilder
Scratcher
Registered: 2013-02-27
Posts: 100+

Re: spirte

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.


http://dl.dropbox.com/u/107729333/1360160765356.jpg

Offline

 

#3 2013-03-06 07:12:21

liamperry11
New Scratcher
Registered: 2013-03-06
Posts: 3

Re: spirte

thanks ill try that

Offline

 

#4 2013-03-06 07:17:41

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: spirte

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)


http://i50.tinypic.com/ded8m.png

Offline

 

#5 2013-03-06 07:22:59

liamperry11
New Scratcher
Registered: 2013-03-06
Posts: 3

Re: spirte

is there any way i can send my porject to you so you can help

Offline

 

#6 2013-03-06 07:28:44

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: spirte

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)


http://i50.tinypic.com/ded8m.png

Offline

 

#7 2013-03-06 09:18:17

ChadtheBuilder
Scratcher
Registered: 2013-02-27
Posts: 100+

Re: spirte

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.


http://dl.dropbox.com/u/107729333/1360160765356.jpg

Offline

 

Board footer