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
Good to see everyone after our unplanned extended break, but it was nice to see some snow too!
This week we did a Greeting Card, I did a birthday card but some of you did a Mothers Day, I’m sure all your Moms loved them.
I have uploaded the finished card up to the scratch website. You will find the log in details in the notes below.
Here are this weeks notes in PDF CDA-S7-Week 6-GreetingCard.PDF
Enjoy the break!
Thank you all for coming on Saturday. I hope you liked the short video of the SpaceX Falcon Heavy Test Launch and the Intel Light Drones from the opening Ceremony of the Winter Olympics.
This week we did a new game, How fast can you Type? Last week we used Sprites as backgrounds and this week we used Backgrounds as Sprites. Just to mix it up!
We used a variable as our Timer, our first time doing this, don’t forget if you want the time to start when you press the first letter rather than when the green flag is clicked then you are going to have to add another broadcast.
We are off for the next two weeks, to cover the school mid term break and also as Confirmation for all the Athenry Schools takes place on the 24th of February and there will be many families attending this from Coderdojo Athenry. Best wishes to any of our Ninjas and families who are being confirmed.
Hope you all have a great break and hope to see you all back on the 3rd of March
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!!!
Another great week, a lot of work was done in the Explorers room. Hope you all had fun making our Maths game!
A player picks a level of difficulty and the computer chooses 2 random numbers to add (subtract or multiply- whichever you choose!) together and show the numbers to the player. Fr this we needed 2 SPRITES and 4 VARIABLES called SCORE, LEVEL, NUMBER1 and NUMBER2 as well as 2 BACKDROPS.
The player then has to enter an answer to the equation and the computer tells them whether they are wrong or right.
We repeated the ask/answer questions 5 or 10 times. Can you figure out where the REPEAT loop fits?
We also had a second sprite who reacted positively to correct answers BROADCAST and negatively to wrong answers BROADCAST. You can use whatever sprites you like and change their look whatever way you like. One coder added a puppy as their second and had him bark whenever an answer was correct.
After all the questions were asked we had the 1st Sprite SAY – Game Over! and BROADCAST Game over so that the backdrop changed and music played. There are two ways to change the backdrop- see below! Here are this weeks notes in PDF CDA-S7-Week_3_18-MathsGame.pdf
Also I have uploaded the finished game to the www.Scratch.mit.edu website, just use the login details in the notes.
See you next week
A special welcome to all our new members that came to us this week, I hope you enjoyed yourself and hope to see you back again soon.
Thank you all for coming again this week. This week we looked at pen commands, we have not done this before in the Explorers group so it was new for everyone.
We also created some variables which we set as sliders which again is something we had not done before with this group.
And lastly we added buttons to our game. We added two separate buttons, a Start and Stop.
Here are the full Pdf version of my notes from this weeks session. CDA-S7-Challenge-Pen Command.pdf
Thanks to everyone who came yesterday and special welcome to our new people. Thank you all for your patience with the projector!
This week we did a game based on an old game called Breakout.
The object of the game is to try and get rid of all the blocks by bouncing a ball into them using a bat of some type. You all had your own versions of what you wanted the game to look that and that’s brilliant, your imagination is way better than mine.
The first thing we did was design your bat and write some code to control it. We decided that the mouse should control the movement and that the movement should be only from left to right and vice versa.
The rest of the code and notes for the game can be found here in PDF CDA-S7-Week_01_18-Breakout.pdf
I have also uploaded the finished game to the Scratch Website if anybody wants to take a look at it or for anyone that wasn’t there on Saturday. I will go through it at the beginning of next weeks session if anyone has any questions.
You will find the login details for our account on the Scratch website in the notes above.
See you all next week and have a great week.
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
Thank you all for coming again this week and I hope you enjoyed the Halloween break.
This week we did a simple Piano.
We only had to draw two keys, and then could duplicate these and change the names. The same applied to the code. The code is the same for each key apart from one small change so the note is the appropriate for the key.
REMEMBER! You need to make four changes each time you duplicate:
Change the name of the spite to the next Note
Change the name of the TWO costumes
Change the NOTE played
Here are notes from this week in PDF CDA-S6-Week_07-Piano.pdf