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
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.
Offline
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.
Offline
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."
Offline
I don't see the glitch in your project now. Good game! I'll find it later, but as of now, it's okay.
Offline
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.
Offline
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
Offline
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
Ha
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!
Offline