Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Jumping Game - Starter Project
- rwgbopit
-
Scratcher
2 posts
Jumping Game - Starter Project
Hi!
I am new to Scratch. I am a beginner.
I am using The Official Scratch Coding Cards and I am working my way through the various starter projects. I am using the Jumping Game Cards. Here is the project: https://scratch.mit.edu/projects/359182105/
The “Stop All” block does not stop the game. Not sure what is wrong. Both egg sprites stops, but chick sprite continues to jump when spacebar is pressed. Also, every time the chick sprite jumps a point is scored. That is probably not supposed to happen.
Am I missing something? What should I change to make it work properly?
Thanks
rwgbopit
I am new to Scratch. I am a beginner.
I am using The Official Scratch Coding Cards and I am working my way through the various starter projects. I am using the Jumping Game Cards. Here is the project: https://scratch.mit.edu/projects/359182105/
The “Stop All” block does not stop the game. Not sure what is wrong. Both egg sprites stops, but chick sprite continues to jump when spacebar is pressed. Also, every time the chick sprite jumps a point is scored. That is probably not supposed to happen.
Am I missing something? What should I change to make it work properly?
Thanks
rwgbopit
- CoderQC
-
Scratcher
100+ posts
Jumping Game - Starter Project
Instead of using
Do
when [space v] key pressed
Your code
Do
when green flag clicked
forever
if <key [space v] pressed?> then
Your code
end
end
- BlueNoodle29
-
Scratcher
100+ posts
Jumping Game - Starter Project
Instead of usingwhen [space v] key pressed
Your code
Dowhen green flag clicked
forever
if <key [space v] pressed?> then
Your code
end
end
Don't advertise your account
- IsaiahContreras
-
Scratcher
500+ posts
Jumping Game - Starter Project
Don't advertise your accountThat's on his signature.
- gor-dee
-
Scratcher
1000+ posts
Jumping Game - Starter Project
if you take the
change [ score v] by (1)out of the chick sprite and put it at the end of the forever loops in both the egg sprites it fixes the score problem
- ScratcherHacker14
-
Scratcher
26 posts
Jumping Game - Starter Project
Hi!
I am new to Scratch. I am a beginner.
I am using The Official Scratch Coding Cards and I am working my way through the various starter projects. I am using the Jumping Game Cards. Here is the project: https://scratch.mit.edu/projects/359182105/
The “Stop All” block does not stop the game. Not sure what is wrong. Both egg sprites stops, but chick sprite continues to jump when spacebar is pressed. Also, every time the chick sprite jumps a point is scored. That is probably not supposed to happen.
Am I missing something? What should I change to make it work properly?
Thanks
rwgbopit
This block stops the scripts not the game itself.
=====================
Hey there people my old account got banned! Check it out here!
https://scratch.mit.edu/users/HpInkJet/
“Mario’s high spirits soon took a somber turn. He rolled himself closer to Frank. ‘I need this job, but you were right. More than a job, I need a way out.’
Frank had him. He was about to detour the rest of Mario’s life. Build a team, deploy them, scoop up the data, get the hell out of town. Frank had left an unhappy trail of ruined technicians. ‘Spies do that kind of stuff’, were his usual parting words.”
― Michael Benzehabe
- rwgbopit
-
Scratcher
2 posts
Jumping Game - Starter Project
Thanks everyone for taking the time to fix my code and offer suggestions that show me what to do in the future.
- Discussion Forums
- » Help with Scripts
-
» Jumping Game - Starter Project