Thank you do everyone you came along on such a lovely day on Saturday, hope you all got to go outside when you went home and enjoyed the weather.
This week, we improved on our game from last week.
Most games reward us for achievements (Gaining:Scores/Money/Health) and penalise us for making mistakes (Losing:Lives, Health, Money)
To this we had to create a Variable. Remember my box with the blocks. A variable holds information for you that you can use again. Remember to always give it a name that is meaningful….
Everything we have learned so far we will be using in ,most of our games we will make in future sessions. Don’t worry if you didn’t understand everything, we will be going over it again and again.
Have fun with the code you have done. Maybe try making another game!
Here are the notes from last week in PDF CDA-S7-Week_04-FirstGame-Part2.pdf
See you all next week
Martha & Julie, Ruaidhrí and Eoin
Wow! what a fantastic turnout on Saturday again, 79 ninjas in the room! plus a few adults!
I hope you had a good time, I know that I really enjoyed it. There was a really great atmosphere and energy in the room.
A special thank you to Mentor Julia for getting 14 loaner laptops working for us this week, so that everyone that wanted to participate, could. Another thank you to the other Mentors in the room, Eoin and Ruaidhrí, it makes my job easy when they can get around the room and help out when needed. You are doing a great job.
One of the first things we must do before we start anything is make a plan.
We quickly learn when we begin our coding that it is very important to test our code as we go along. Making mistakes is good, but we must learn from them by spotting them (testing) and fixing them.
I am attaching my notes in PDF for you. CDA-S7 Week_03-FeedingtheFish.pdf
We will continue to add to the game next week but don’t worry if you weren’t here this week, I will have a copy of the game so that you can join in.
See you all nest week!
Martha and the Explorers Mentors, Julia, Eoin and Ruaidhrí
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!