This is my Day challenge. Here is the challenge.
Display a flower each time that the user clicks on the background. There are at least three different ways of programming this in Scratch—what will your approach be? (Remember, if you get stuck, find inspiration and support in the Teaching with Scratch Facebook group, our list of Getting Unstuck strategies, or on Twitter at #CreativeComputing.)
Add your Scratch projectto this studio to share how you approached today’s challenge. Then, check out and comment on some other examples in the studio!
Take a moment to reflect on your creative process in the Notes and Credits section of your project. What did you like most about your project? What would you do with it next, if you had more time?
So I was thinking there are a couple of ways I could do this. One could be simple, and the one I use, if time becomes an issue. Choose a simple backdrop, when this sprite clicked, send message, have a flower sprite, hidden when green flag clicked, with the block when I receive X message, show. I was thinking I could add 3 or 4 flowers as sprites and then have one randomly appear, I’d have to think more about that method. That led me to think about Lists. Could I make a list of 10 items, 10 flowers, then when background clicked, a number between 0-9, lists start with 0, is selected, and chosen to appear. This would give the largest variety of flowers. I’ve used lists to make Mad Libs, but not much else. I’ll tinker with this method to see if I can get close. If not, I’ll do a simpler version.
I went through the studio and saw a huge variety of projects. I didn’t peek at any code in advance yesterday, but today I was so intrigued, that I looked at some code. It was far simpler than I thought. I saw some simple elegant solutions, code is poetry. I think the one I liked most had one sprite, but with many costumes, and when the mouse was clicked, it randomly changed costumes, so one of the 10 costumes was displayed. That way, you only had to write code for one Sprite and not mess with lists.
Here are a few projects from the studio that I liked
Here are 2 versions I made. The first one I uploaded a petal image. The second one I drew a petal image using the Sprite drawing tools. Both work.
Please follow and like us: