You all did great work on Saturday, there was some quite complex thinking to be done to figure it out but you did great!
- the 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! CDA-S8-Week_9_18-MathsGame.pdfCan you improve our game??! Can you figure out how to subtract or multiply instead of add? Can you get the computer to add three numbers together or give the user 3 level options like: easy, medium or hard? The notes for the Maths Game are here:
See you Saturday
Julie, Ruaidhrí and Eoin
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-S7-Week_08-Paint.PDF
Thank you all for coming on Saturday. A lot of us had to fit into the Advancers Room but we managed. We should be back to our own room next. Thanks to Oliver and his crew for moving to another room for us.
This week we did a new game, How fast can you Type? This week we used Backgrounds as Sprites. Just to mix it up!
We used a variable as our Timer, as we did with our Maths Guessing Game!
Full notes from today are here in PDF CDA-S7-Week 7-How fast can you Type.pdf
And my own game from today is up on the scratch.mit.edu website.
See you all next week.
Julie and Ruaidhrí
Great to see you all on Saturday and welcome to our new members.
We made a slight departure from the games we have done in previous weeks. This weeks game was a mathematical Guessing Game.
We only had one sprite and one large block of code. We had to create variables and figure out all the possible situations that could occur when a guess was made.
Here are the notes in PDF form from our Week 6 Session. CDA-S7-Week_06-GuessNumbers.pdf
I have also uploaded the game to the Scratch Website in our Explorers Account so you can see the full working game.
Thanks for coming Saturday even though the weather was dreadful.
This week, I helped Bo Peep found her sheep! Some of you did the same and some used ideas like Minecraft Steve finding Iron Ore and Diamonds, Knights finding dragons or a Princess finding flowers.
Before we even started our game this week we talked a little bit about File Management and about the importance of keeping your files somewhere you can access them quickly and giving them a meaningful name.
So to this end, we all created a folder where we will be keeping our files in the future and within that we had a sub folder for this weeks files.
We started our game by drawing our background on our stage:
Unfortunately, due to internet problems we could not search the internet for images for our Sprites, but we could still use the sprites from the Scratch Library.
This week, we decided to move our main sprite using the arrow keys. For this we had to learn a small bit about the X and Y axis and I gave you a little tip on how to remember which is which!
Hope you all enjoyed this week, aee you next week when we will be starting a new game!
Here are the notes for this weeks session in PDF CDA-S7-Week_05-BoBeep.pdf
Julie, Ruaidhrí and Eoin
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
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!