Scratch Alternative Presentation

In one fourth-grade class students had a US state presentation project as one of the last assignments for school this year. I received the okay from the teacher to allow a student to make his presentation using Scratch.  He was a Code Club member and I knew he had the programming skill and drive to complete all the requirements for the project using Scratch.

While the rest of the class used Google Slides, he made this great Scratch interactive project to share.  He worked hard and I was impressed with the results.Screen Shot 2017-07-02 at 1.30.49 PM

He set the project up like a Chatbot project and used broadcast to change the backdrops. He also asked questions to keep the audience engaged.

I was available to help with the coding, but he worked pretty independently.

Screen Shot 2017-07-02 at 1.47.13 PM

I would have liked to see more picture Sprites. We also discussed recording some audio for a portion of the presentation but ran out of time. He made a bibliography backdrop but it didn’t get included in the version we uploaded. Before he presented this to his class, he made some last minute changes that are saved in his account offline and not published.

He has his own Scratch account now and I know he will continue to code and create in middle school.  That makes me really proud.

Screen Shot 2017-07-02 at 1.39.38 PM

He had a rough end of the year within his classroom and with the dynamics of some of the other students so I was glad to be able to give him some flexibility with this assignment and let him do something he enjoys and show his coding skills.

I would like to think that Scratch would be an acceptable presentation format for other school projects like this.  I have been thinking along these lines for a while and now have proof that it can be done and can show teachers what the results look like.

Advertisements

Mix in Some Makey-Makey Action

Ever since I got the first Makey-Makey, just before school let out last June, I’ve been looking for an opportunity to introduce them in Code Club.

Screen Shot 2017-03-27 at 6.31.18 PM

First time using Makey-Makey

I gained more experience with them at the Scratch@MIT2016 Convention when I participated in the Code Create Art Alive workshop.  In the Fall, I did introduce the Makey-Makey devices to some 4th graders at alternative recess but not at Code Club or with a whole class.  There was so much coding to learn and to be honest, I wasn’t sure what it would look like. Finally, last week in Code Club, I brought out the Makey-Makeys (we have 7 of them), some bananas, potatoes, foil, junk building supplies and it happened.

We talked about conductors, making a closed circuit, connecting to ground/earth, etc. There were many questions related to dangers of electricity since you plug it into the computer and the computer is plugged into the main current.

I showed them the Makey Makey piano, with bananas of course.  Then I showed them how to use it with games they have already made – like the race game.  For that, I had mocked up a pressure sensor (to step on) from a padded envelope.  It worked really well with the race game.

Screen Shot 2017-03-19 at 10.51.07 AM

Pressure pad for Makey-Makey from a padded envelope.

Then I introduced Whack-a-Potato that I found from the Makey-Makey lessons and also on Instructables.  I made a Whack-a-mole (squirrel) Scratch project and improved my code by looking at Scratcher tarmelop’s Whack-a-Ghost project.

I put together a Google Doc with the instructions for the students.  It is not a polished learning guide, just the basics for them to code up a Whack-a-mole game.

Screen Shot 2017-03-27 at 8.37.33 PM

Whack-a-Squirrel for Makey-Makey play

I few students got to work on the Whack-a-Potato project.  Others wanted to pursue a Makey-Makey music themed project or paint project.  A few just set up a Makey-Makey to work with a project they had already built.

OLYMPUS DIGITAL CAMERA

Makey-Makey Maze

OLYMPUS DIGITAL CAMERA

Building a complex pressure pad

OLYMPUS DIGITAL CAMERA

Potatoes and Tangerines

It was great to see the students try things. I hope this inspires the students to think of incorporating Makey-Makey devices with their final individual projects. I am hoping that is where this will lead.

Poetry Generator

While planning Wednesday’s Code Club during a snow day on Tuesday I came across the Code Club World project Ada’s Poetry Generator.  This is a new project for me and I liked the way it introduced and used lists.   Arrays and lists are extremely important data structures in programming – right up there with loops and variables. I’ve never introduced lists in Scratch before.  I also liked how this project wasn’t a game but had the potential for a lot of creativity and fun.

I mocked up a project with Scratch Cat instead of Ada Lovelace.  (I did talk briefly about Ada when introducing the project.)

Screen Shot 2017-03-16 at 8.45.33 PM

I added some “talking” animation to Scratch Cat by duplicating costumes and morphing the mouth into different shapes.  Then coding the costumes to change when the poem is “spoken”

Some students whined a bit about poetry and not a game but I ignored that because I knew they’d like it once they figured it out.  I’m hoping someone chooses to make a MadLib or something similar for the final project.  If not, I may see if we can use this in some language arts project.

Here are some nice examples:

Screen Shot 2017-03-16 at 9.00.09 PM

Computer generating poetry with lists

Screen Shot 2017-03-16 at 9.06.15 PM

This coder really liked gluteus maximus, and unhelpful list naming conventions.

Screen Shot 2017-03-16 at 9.01.11 PM

Awesome animated mouth

This coder is my animator to be.  He drew and animated the PacMan and Ghost being eaten costumes… then he coded the poem in the last few minutes.

Screen Shot 2017-03-16 at 9.02.52 PM

Future animator

These two below took the morphing a bit to the extreme but the coding (and poetry) is well done:

Screen Shot 2017-03-16 at 8.56.52 PMScreen Shot 2017-03-16 at 9.15.40 PM

I enjoyed reading all the funny randomly generated poems that the students created.  I was glad I choose this project for my Code Club.

Game State – Game Loop

This week we tried out Code Club World’s Desert Race project.  One Code Club member used this for his independent project last round, so we had one expert.  We used his final project to demo the game. Screen Shot 2017-03-12 at 11.20.11 AM

Desert Race is a fairly simple 2-person race to the finish.  The main concept in this game is setting a game state variable to control the action. In event driven games is important to control the allowable events – like when to start. And we don’t want anyone to cheat by starting before the start signal.  Setting up a game state variable, ‘racing’, like a Boolean with 0 (not racing) and 1 (racing) is the concept I was hoping they would take in while making a cool two person game.

Defining a Boolean for game state is the first step to building a Game Loop that programmers use when creating more complex games.

Scratch Wiki also refers to it here: https://wiki.scratch.mit.edu/wiki/Game_Loop.

My fourth graders may not ever get to that level of programming here in Code Club, but it is a powerful idea. I have used this programming technique in (non-Scratch) games I’ve created in the past and found it useful.

I also made a quick version of the project adding a bit of 3D perspective with my Space Race project.  The racers (cat and dog) get smaller as they head to be the first to reach the planet.

Screen Shot 2017-03-12 at 11.26.57 AM

The students made some nice games. Many customized their Sprites and a couple recorded their own “win” sounds.

This one below has some almost imperceivable pitfalls that send you backwards (the opposite of a booster).

At the end of the day a few students asked to be able to keep working on the Desert Race project for next week -they needed more time and were enjoying the project.  I think I’ll let them, but I’ll need another project for those who finished or want to move on.  So I asked one of the two girls in the Club what she would like to work on and she said, how about making an ebook.  I asked if she meant like an animated story?  I’d love to focus on animation more – there are some great techniques to making things look like they are moving – I love Tumbling Santa.  Also, I’m thinking I need to show her Bubble103’s Scratch projects.  Maybe she wants to make a tutorial (nonfiction ebook).  There are a lot of How To projects on the Scratch site.  I’m considering these two options for next week.

Also awesome this week was this project:

Screen Shot 2017-03-12 at 12.18.11 PM.png

This student’s race project was lost when Scratch 2.0 offline editor crashed. He was mostly done and he lost all his code. Instead of recreating it, he made this cool project. (It is a bit glitchy, but neat.)

Spring Code Club Session Begins

Code Club session #8 met for the first time on Wednesday.  There are eighteen 4th graders and two high school volunteers.  This is the second time I’ve had a mixture of students from both elementary schools in my city in one club.  Another thing that is cool about the Spring session is that I have returning Code Club members, or, as we call them, “experts”.  Only 5 students are new to Code Club and there was only one student I didn’t know.

screen-shot-2017-03-02-at-6-56-38-am

A New Scratcher’s take on Maze game

After introductions, I asked the “experts” what favorite project they had from the last session of Code Club.  They remembered and liked the Maze game, Space Junk and Chatbot from CodeClubWorld. They also enjoyed the projects they had created themselves, not surprisingly.    I like starting with the Maze game and had already chosen that project for our first meeting.  It’s a simple game with many ways to make it more exciting and complex.

We started out by reviewing the maze design and refreshing our programming vocabulary.  What was the object of the game? How does the Sprite move (arrow keys or follow the mouse were options)?  What happens when you touch the edge of the maze?  How do you win?  Then we talked briefly about ways to make it more exciting – more levels, obstacles, villains, etc.

screen-shot-2017-03-02-at-7-08-28-am

Then they got to it. They were fairly independent coders, for the most part, and they helped each other a bit, too. My high school volunteers and I think we will be able to try some more complex coding  projects this round.  It was a really fun 75 minutes.

Thinking ahead, here are some goals for this session of Code Club:

  • Encourage more animation: We have some artists, so I’d like to share with them and encourage more creative uses of costumes for animation effects.

Screen Shot 2017-03-02 at 7.00.49 AM.png

  • Explore “more blocks”: someone is already exploring defining their own blocks.  I’d like to encourage more of this.  As well as random numbers.

Screen Shot 2017-03-02 at 7.02.18 AM.png

  • Clearing up misconceptions: We will have to revisit some concepts like the forever block and support better debugging habits
screen-shot-2017-03-02-at-7-03-35-am

Find the glitch in this code.

screen-shot-2017-03-02-at-9-58-30-pm

It seems this “expert” puts everything in forever blocks.

  • And finally – I want to use MakeyMakey‘s this time. I told them I want to use them with our projects – especially our final projects. Those couple of students who have played a bit with MakeyMakey’s were quite excited. I’m really excited (and a bit nervous). I don’t have much experience using MakeyMakey devices, with or without students.  Luckily that won’t stop me.

Coding Helpers

On Wednesday I decided to introduce Scratch to a class of second graders.  Wednesday’s schedule in the lab is such that there is an overlap of about 10 minutes with 4th grade alternative recess.  With the growing interest in coding among 4th graders, sometimes there are 4th graders waiting around for a free computer at the start of their recess.  I decided to put this fact to use rather than let it aggravate me. (They can be noisy while waiting).  I figured they could help me introduce Scratch to these 2nd graders.

screen-shot-2017-02-16-at-10-13-34-pm

My goal was for the 2nd graders to add a background and a Sprite and make the Sprite do something when clicked.  I sort of sprung the project on both groups but it worked out well.  The 4th graders, as a whole, were very helpful and the 2nd graders were pretty excited with all the choices. It amazed them that a couple blocks of code could make their Sprites interactive.  I was proud of my 4th graders for their enthusiasm and their ability to share their expertise in Scratch with the younger students.  More 2nd graders were able to get support while trying something new.  I’m pleased.

screen-shot-2017-02-16-at-10-07-11-pm

On other fronts, there are eighteen 4th graders signed up for Code Club.   Sadly, I’m competing with another after school program – Drama Club – so I have only 2 girls on my roster.

 

 

 

Forever, Until Done

I’ve been noticing interesting uses, or misuses, of Scratch’s ‘forever’ block.  I applaud Scratch for it’s fail soft policy and understanding the desire of 10 year olds to test things, especially to their limits.

screen-shot-2017-01-12-at-5-52-13-am

Nested forever loops will get the job done

The ‘forever’ block seems pretty self-explanatory and perhaps that means I don’t introduce it properly. My students tend to use it in 3 ways: repeating actions, for event listeners and for looping background music.

screen-shot-2017-01-12-at-6-18-45-am

Repeating an action forever

I introduce the forever block after introducing the repeat block.  Once they know about it, there is no going back!

In many games you wait for a certain action to happen to respond to it. One way to do that is to code some ‘if statements’ and set them in a forever loop, like an event listener in other coding languages.

screen-shot-2017-01-12-at-6-15-12-am

Listening for the win condition

Many, many students want use it for play background music for their games.

screen-shot-2017-01-12-at-5-54-27-am

Two dance tracks in a forever loop.  Both seem to work, together.

And I think it is with the ‘play sound’ block where things gets confusing.  I am a proponent of ‘play sound until done’ in a forever loop, and the Scratch Wiki concurs, but it seems to work without the ‘until done’ if it is the only thing in the forever loop.

screen-shot-2017-01-12-at-6-18-55-am

Even without the ‘until done’ this code plays the whole song in an infinite loop

Other things I’ve seen makes me wonder. Why did the Scratcher feel the need to use the forever block?  Was some other code interfering with their action?

screen-shot-2017-01-12-at-5-57-33-am

What would cause the need for show in a forever loop?

Or are they just testing things to see what works and what fails.

screen-shot-2017-01-12-at-5-52-59-am

Forever and ever and ever and ever, just in case repeating 10 to the power of 109 times isn’t enough!

Thanks Scratch for not failing them.