It was great to see such a big turnout on Saturday for our first full session. A special welcome to our Ninjas and thank you to the parents who attended with them.
I started off this year with a session that let you you see where some of the coding blocks can be found and how we can use them.
Using the Letters (Sprites) in the library, we wrote a word. Most people used their name.
We took each letter and used code from different sections of the palette of code.
For my First letter, M, I decided that when this Letter (Sprite) was clicked, that it would change colour. Experiment to see what happens when you change the number!
We used a different piece of code for each letter. Remember, you can use as many blocks of code as you want. A letter could change colour, size, move and talk! all at the same time.
Here are some more ideas of what you could do.
Here are my full notes from this weeks session in PDF CDA-S7 Week_02-YourNameinLights.pdf
Hope see you all next week. Have fun coding!
We started work on on our scrolling platform game this week and I showed you all how to get started. You can customise even further to suit your game as the weeks go on .
To understand the concept, you must understand that the STAGE is only 480 pixels wide (x goes from -240 to +240). No one SPRITE can be larger than the STAGE and we won’t be able to see a SPRITE that isn’t on the STAGE (ie. it’s x position is less than -240 or greater than +240). So we have to set up a series of SPRITES that extend past the stage and move them across the stage from left to right and under Mario’s feet to make it look like he is moving over the ground from right to left!
1. We started picking our character from the internet or from the Sprite Library
2. Next, we drew our own Ground SPRITE using the PAINT NEW SPRITE button. Important!! The sprite must be the full length of the stage!! See the 1st picture above for an example of what the ground sprite could look like. Mine looked like a brick wall, but yours can look like a stone wall or concrete one or some kind of footpath or road.
3. Now we must code our Ground SPRITE! We need to set it’s inital x position to zero and continuously move it in a direction for as long as we are pushing the right or left arrow buttons. To do this we need a new VARIABLE called XPOS. Go to DATA and create this new VARIABLE. See the image below on the bottom the instructions for setting up the initial position of the first ground SPRITE. After you create and code the first one, we can duplicate Ground SPRITE 1 and create Ground SPRITE 2. Be sure that Ground SPRITE 2 has an xpos set to 480 pixels more than Ground SPRITE 1.
4. Lastly, for this week, we need to get the Ground SPRITES to move!!
!!IMPORTANT! !Click the little i button on your Ground SPRITE and see all the information about the SPRITE. Change the rotational direction of the Ground SPRITE to non-rotational. It is a button that looks like a dot.
We then coded the Ground SPRITES to move to the left when we press the left arrow key and to the right when we press the right arrow key on our keyboards. See below: Be careful to program the left arrow key to Point In Direction 90 and the right arrow key to Point In Direction -90. Notice both the Change xpos By commands have different numbers! (-5 and +5) Get these wrong and the SPRITE will not move in the correct direction. Once you have the 1st ground SPRITE working the way you like, duplicate it and all it’s coding. All you have to change in Ground SPRITE 2 is the xpos. It must be set to XPOS +480. If you duplicate that sprite, you must set it’s xpos to XPOS + 960 and so on and so on…
We will add some obstacles this week and maybe have some rewards for our character as well.
See you Saturday
Thank you all for coming again on Saturday and welcome to our new people!
This week we looked at some of the elements we will use in A Mario game we will make in a couple of weeks time. We will use scrolling of objects in the background to achieve movement rather than making the Sprite itself move as we would normally do.
It can be a difficult concept to grasp for the younger ones, but we will go through it again before we make the Mario game.
Firstly we select our Sprite and we decided we would only move left and right.
We then had to create some Backgrounds. NOTE: EACH BACKGROUND IS A SPRITE. You do not create it as you normally would.
I have put the game on the Scratch Website http://www.scratch.mit.edu. Login with the User name and Password in the Notes Below.
Here are this weeks notes in PDF CDA-S7-Week 4-Scrolling.PDF
See you all on Saturday, we will do a new game that I think you will all like and maybe a little competitive!!!
Hope you all enjoyed finishing up our drawing program. We made good use of costumes this week to make it look like we were dipping our paint brush in each of the different colours.
We also used a variable similarly to how we used in the Piano Game we made. We made it into a slider and then code select the Pen Size we wanted.
Here are the notes in PDF. CDA-S6-Week_08-Paint
See you next week for something a little Christmas themed!
No notes this week, I will wait until we complete the game this Saturday.
Hope you all enjoyed the visit from Medtronic, we really appreciate the volunteers coming out to see us and showing us all the really interesting and exciting things they do….and the lollipops were lovely too.
See you all next week and we will complete our Painting program
Today we took a look at Paint.net, which is a drawing program. I quickly went through the menus but the best way to learn a program like this is to use it and experiment with it.
The main reason we looked at it this week was because we will need it next week as we begin our modelling and stop/motion animation. After we take our photos we will be able to “clean them up before we bring them into Scratch as our Sprites.
Next week, if the Moms and Dads could bring along a camera or phone along with the lead to attach these to your laptop.
And of course most important of all bring your imagination!
Here the full notes from todays session in PDF form. cda-s6-week-2-17-learnaboutpainting.pdf
Good to see everyone there on Saturday. We made a game t similar to on old game called Breakout.
We used a number of important coding concepts again this week, loops and decisions, Variables, broadcasting, etc.
During class, we didn’t have time to add the Lives and the Scores but we will continue with the game on Saturday.
Here is a link to the notes: cda-s6-week_07-breakout.pdf
Good to see you back after the Halloween break.
Last Saturday we did a slightly different game to usual., There was no movement, no sensing when something happened. It was a Maths Game, a guessing game where the computer picks a random number and we had to guess the number.
We had to first make sure that a random number was picked using an Operator. Previously we have used a Variable to store a Score or Lives, but this time it was storing the random number and our guesses. Leaving them on screen as we were testing allowed us to understand more about the variable and what it does…it also made the testing a little easier.
Depending how any guesses we were given we repeated our code that number of times. As well as having to make decisions, i.e If_then, we also had to do a comparison before making the decision, to determine whether the guess was correct, too low or too high.
Some of you tried to add a timer and below is the code you will need if you didn’t get it to work. Take a look and add it to your own game/games.
Here is a link to last weeks notes. cda-s6-week_06-guessnumbers.pdf
See you next week!
We had a great crowd for our first session in our Explorers group. A big welcome to all our new Ninja’s and of course a special welcome back to our younger Ninja’s from last year, who are still with us.
Thank you all for coming and for your patience while we got everyone sorted out with downloading Scratch 2.
We started today with our first game, as well as learning how to write commands to move our sprites, we took a brief look at the interface for Scratch 2.
We also took a first look at some fundamental concepts that we will be using throughout the year. Today we looked at the X and Y axis as well as the number of degrees in a circle.
Here are the presentation slides from the day, in PDF format: cda-s6-week_02-firstgame.pdf
I hope you all enjoyed today and hope to see you all again over the next couple of weeks!
This week and part of last week we created a piano! The initial keyboard looked like this:
Each white and black key is a separate SPRITE. We began by drawing the white Middle C SPRITE which has two costumes. The first costume is white and the 2nd is a different colour (you choose) that flashes up when the SPRITE is CLICKED. This helps us to see which sprite is responding to the click.