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

#1 2013-02-26 19:09:41

apple51
Scratcher
Registered: 2013-02-09
Posts: 5

How do I make a Tennis Game?

I need help making a tennis game because I don't know how to make good one. Any advice helps a LOT! THANKS!

Offline

 

#2 2013-02-26 22:13:18

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How do I make a Tennis Game?

Please be more specific, like this:

"Hi, I am making. Tennis game, and I need to know:

I need to know how to make a ball go back and forth by paddles."

If you give more details, I could help you a lot better.  smile
Another thing, just posting that you need help making a game sounds more like a collaboration than a problem that needs fixing. If you want someone to go in with you to help make the game, then consider posting this in "Collaboration".

Regards,

CAA14

Last edited by CAA14 (2013-02-26 22:13:50)

Offline

 

#3 2013-02-27 19:09:39

apple51
Scratcher
Registered: 2013-02-09
Posts: 5

Re: How do I make a Tennis Game?

ok. I need help making the ball go to the paddle  that is NOT conrolled (I know how to make it go randomly(sort of)) but I also need help to with what it should be like (like pong, a tennis match game etc.)anyways thats what I need help with.Thanks!  smile

Offline

 

#4 2013-02-27 19:45:18

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: How do I make a Tennis Game?

CAA14 wrote:

Please be more specific, like this:

"Hi, I am making. Tennis game, and I need to know:

I need to know how to make a ball go back and forth by paddles."

If you give more details, I could help you a lot better.  smile
Another thing, just posting that you need help making a game sounds more like a collaboration than a problem that needs fixing. If you want someone to go in with you to help make the game, then consider posting this in "Collaboration".

Regards,

CAA14

No. Not a collaboration. It sounds like they're asking someone else to do their project for them.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#5 2013-02-27 20:41:56

apple51
Scratcher
Registered: 2013-02-09
Posts: 5

Re: How do I make a Tennis Game?

No. I just need help with the script!

Offline

 

#6 2013-02-27 23:05:36

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How do I make a Tennis Game?

Okay, I will get back to you on this soon, maybe tomorrow. I see that you're not asking others to do your project now... But the title sure seems like it.  smile

Next time, use a more specific name for the problem. It is VERY annoying when a person just says "How do I make a game"... Again, I know you're not doing that... But someone has before to me.

Regards,

CAA14

Offline

 

#7 2013-03-01 16:30:59

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How do I make a Tennis Game?

Okay, Here's a script that will have the ball go back and forth:


when gf clicked
forever 
if <touching? [paddle 1 v] >
point in direction <[direction v] of [paddle 1 v]>
end
end

Do the same with paddle 2.

NOTE: All these scripts go in the ball.

Then, you need to have the ball moving:


when i receive [ball serve v]
forever
if < not < (ball gone) = (yes) > >
move (10) steps
end
end
You should have sensors that tell the program if the ball have been hit past a player, and if so, it would grant the right point and then tell the ball server to serve again.
The thing that serves the ball would set the variable "ball gone" to no.

Hope that helps,

CAA14

Last edited by CAA14 (2013-03-01 16:31:36)

Offline

 

Board footer