ScratchData LogoScratchData
Back to MrQuentin's profile

Getting Unstuck 2020 Day 2

MRMrQuentin•Created July 3, 2020
Getting Unstuck 2020 Day 2
31
9
56 views
View on Scratch

Instructions

Listen to the introduction. You will use the up and down arrows to move the turtle. You are trying to eat 10 jellyfish. If you eat too many plastic bags, bad things happen.

Description

This is another example of the type of project I would do with my students. In my lab, I always give the students as much choice as I can. So even if they are using Scratch to share their learning, the program they create can take many forms. It might be a narrative, a presentation, an animation, or a game. Here I have created a game in which the user controls a sea turtle. The goal is to eat jellyfish and avoid the plastic bags. The program opens with information about the leatherback sea turtle, then gives directions for playing the game. I used clones for the jellyfish and plastic bags rather than individual sprites that drift across the screen and then teleport back to their start position. (That's how I teach the students to achieve this effect when they start.) Using clones lets there be multiple jellies or bags on screen at once. I encountered some bugs with the transition to the winning and losing screens that needed sorting. I was using a "forever" with an "If... then" to check the value of the variables. That caused the program to hang after switching to the end screens. I switched to a "wait until..." block. For good measure I added "delete this clone" to the "when I receive..." events. Another challenge was getting everything to reset so the user can play again without listening to the preamble again. That just took a lot of trial and error and in the end I discovered that the easiest way to reset everything to play was to swap out a bunch of the green flag blocks for the "When I receive start" broadcast blocks. leatherback turtle pic: https://sites.google.com/site/leatherbackturtlesb2011/feeding-habits

Project Details

Project ID409413600
CreatedJuly 3, 2020
Last ModifiedJuly 7, 2020
SharedJuly 7, 2020
Visibilityvisible
CommentsAllowed