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

#1 2012-01-26 19:35:32

Sn33ze
New Scratcher
Registered: 2012-01-26
Posts: 9

Pong Game

Hi I am making a pong game and everything seems to be working but when i have the ball movement accelerated by 1 after every score, the  "wait 3 seconds" command,  after someone has scored it doesn't work. Its suppose to go back in the middle and stay there for three seconds before it stops moving. When i take out the script for accelerating the ball movement after a score, the "wait 3 seconds" works. Can someone help me fix this?

Thank you

Offline

 

#2 2012-01-26 19:37:35

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Pong Game

Sn33ze wrote:

Hi I am making a pong game and everything seems to be working but when i have the ball movement accelerated by 1 after every score, the  "wait 3 seconds" command,  after someone has scored it doesn't work. Its suppose to go back in the middle and stay there for three seconds before it stops moving. When i take out the script for accelerating the ball movement after a score, the "wait 3 seconds" works. Can someone help me fix this?

Thank you

We can probably help you if you post the project on your account.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#3 2012-01-26 19:40:14

Sn33ze
New Scratcher
Registered: 2012-01-26
Posts: 9

Re: Pong Game

how do i do that?

Offline

 

#4 2012-01-26 19:44:39

Sn33ze
New Scratcher
Registered: 2012-01-26
Posts: 9

Re: Pong Game

ah i just found out! here it is!

http://scratch.mit.edu/projects/Sn33ze/2296378

Offline

 

#5 2012-01-26 19:45:23

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Pong Game

Sn33ze wrote:

how do i do that?

Press the share button at the top of the screen, then the "Share this project online..." button.
Then type in your login name (For you it is Sn33ze), password (your website account password), what you want the project to be named (for example, Pong), and then hit the "Ok" button.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#6 2012-01-26 19:46:43

fungirl123
Scratcher
Registered: 2011-10-09
Posts: 1000+

Re: Pong Game

Sn33ze wrote:

how do i do that?

Go to "Share" on the Scratch program, then when the drop-down menu comes down click on "Share this project online."
Then enter your username, password, and the title of the project where it says to, and add additional stuff like project notes and tags but you don't have to.
Then click "OK."


http://www.thebrag.com/wp-content/uploads/2011/06/GroupLove_General1_IMG_9057.jpg

Offline

 

#7 2012-01-26 19:51:56

Haiming
Scratcher
Registered: 2011-08-20
Posts: 1000+

Re: Pong Game

I don't see the glitch in your project now.  wink  Good game! I'll find it later, but as of now, it's okay.

Offline

 

#8 2012-01-26 19:54:02

Sn33ze
New Scratcher
Registered: 2012-01-26
Posts: 9

Re: Pong Game

the glitch is it doesn't seem to go back to the center and wait 3 seconds after someone has scored then start moving on its own. And i can't fix it  hmm

Offline

 

#9 2012-01-26 20:19:41

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Pong Game

The problem is that you have a lot of scripts that aren't grouped together, and you didn't tell all these scripts to wait when a goal is scored.

I condensed all your scripts into one larger script. This means the "wait 3 seconds" will apply to everything and you don't need the variable "Goal Just Scored".

Here is a picture of the scripts. I have also uploaded them to one of my accounts if you want to download the fixed version.


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#10 2012-01-26 20:20:49

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Pong Game

demosthenes wrote:

The problem is that you have a lot of scripts that aren't grouped together, and you didn't tell all these scripts to wait when a goal is scored.

I condensed all your scripts into one larger script. This means the "wait 3 seconds" will apply to everything and you don't need the variable "Goal Just Scored".

Here is a picture of the scripts. I have also uploaded them to one of my accounts if you want to download the fixed version.

Aww I was working on it right now but you beat me to it  tongue


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#11 2012-01-26 20:22:12

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Pong Game

JJROCKER wrote:

demosthenes wrote:

The problem is that you have a lot of scripts that aren't grouped together, and you didn't tell all these scripts to wait when a goal is scored.

I condensed all your scripts into one larger script. This means the "wait 3 seconds" will apply to everything and you don't need the variable "Goal Just Scored".

Here is a picture of the scripts. I have also uploaded them to one of my accounts if you want to download the fixed version.

Aww I was working on it right now but you beat me to it  tongue

Ha  big_smile

Also, Sneeze, at the top of my script there is a block that says "set BallSpeed to 4". This should be moved outside the forever loop!


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#12 2012-01-26 20:36:58

Sn33ze
New Scratcher
Registered: 2012-01-26
Posts: 9

Re: Pong Game

ahhh, thank you so much for the help guys! appreciate it!  smile

Offline

 

Board footer