I haven't figured out a way to make the timer stop, it can only be reset to zero. To work around that, define a variable called Time and set up a forever loop that sets Time to the rounded off value of the timer (Round will get rid of the fractional seconds...it looks better). Take the timer off the screen, leave the Time variable instead. Then, when patrick hits the lava, use a Stop Everything block which will stop the loop from updating Time and it will freeze. I would put the script that controls Time under the Stage, since it doesn't really belong to any particular sprite.
Here is a pretty good way to increase the speed: First, define a variable called Speed and set it to your starting value with the 'Set Speed to __ ' block(maybe 3) under one of the Green Hat flags. Where you have the 'Move 6 Steps', replace the 6 with the Speed variable. Now, set up a 'Forever Loop' under a Green Hat and in it put 'Change Speed by 1' followed by a 'Wait __ Sec' block. Set the Wait to however long you want to wait between speed changes, maybe 10 seconds. Works nicely!
Download "Pat Pong"(4 sprites and 5 scripts) and open it in Scratch
Project Notes
Move mouse to control the Krabby Patty Don't let Patrick fall into the lava. When Patrick hits the Krabby Patty, he will bounce off it. This is my new updated version ofthe old Pat Pong. Write down time in comments
Comments
You need to be logged in to post comments
Add a Comment
This is good, but I think your ohter spongebob pong game was better. Good work! Sqawk! This is the webkinz parrakeet.
(view all replies)Comment Reply
how do you play the games i am new
(view all replies)Comment Reply
it should say in the project notes :)
(view all replies)Comment Reply
nice
(view all replies)Comment Reply
thanks soccerstar9, are u really are soccer star?
(view all replies)Comment Reply
When patrick touches the lava, how do i make the time stop?
(view all replies)Comment Reply
I haven't figured out a way to make the timer stop, it can only be reset to zero. To work around that, define a variable called Time and set up a forever loop that sets Time to the rounded off value of the timer (Round will get rid of the fractional seconds...it looks better). Take the timer off the screen, leave the Time variable instead. Then, when patrick hits the lava, use a Stop Everything block which will stop the loop from updating Time and it will freeze. I would put the script that controls Time under the Stage, since it doesn't really belong to any particular sprite.
(view all replies)Comment Reply
Here is a pretty good way to increase the speed: First, define a variable called Speed and set it to your starting value with the 'Set Speed to __ ' block(maybe 3) under one of the Green Hat flags. Where you have the 'Move 6 Steps', replace the 6 with the Speed variable. Now, set up a 'Forever Loop' under a Green Hat and in it put 'Change Speed by 1' followed by a 'Wait __ Sec' block. Set the Wait to however long you want to wait between speed changes, maybe 10 seconds. Works nicely!
(view all replies)Comment Reply
Thanks, i had lots of problems with that. thanks a heap
(view all replies)Comment Reply
Thanks, youre my first commenter
(view all replies)Comment Reply
Ha! nice!
(view all replies)Comment Reply