Multiple Sprites & More
A new task was set for me to accomplish where I have to create my second project on making code arcade. For this project, I must complete the “picnic food tutorial”. After this is completed, I will be playing around with what I have and add more interesting functions to my picnic.
How was the tutorial?
To be honest, it was very easy to follow the instructions and complete the initial tutorial. It is a great way to get familiar with the coding and understand what are the block’s used for. It didn’t take long for me to complete the tutorial. I had to create my sprites, choose the illustration, create a name for the sprites and locate them on the screen keeping in mind the “x” and “y” position. Initially I only had to create two sprites which were a chicken and a pair of cherries. There were eight steps involved during the tutorial.
How did I change my variable’s names?
My first step was to go to loops, get a “on start” block, then go to sprites and get the “set mySprite to sprite (empty pic) of kind player” block. Now that I have this block of code, I can replace “mySprite” to “cherry”, set the empty picture box with an image of a cherry made out of pixels. To change the name, I just had to click on were it said “mySprite”, select rename and then add in the text box how I want to call my sprite.
Coordinates on makecode?
In able for you to set or display the prite where you wanted to be, you must look for a block that says “set mySprite position to x 0 y 0” This way, you can locate the sprite anywhere you wanted to be on the screen. If the sprite were to be located on coordinates (0,0), then you’ll see the sprite displayed on the top left corner. If the sprite is on coordinate (160,120), then you’ll see the sprite on the bottom right corner.
What have I learned? Were there any difficulties or challenges?
Since I have already done the walking hero tutorial and modified it, I had an idea of the hoe to make the sprite and located on the screen in a specific location. This was a review for me, a chance to practice my skills and move on with new things. I didn’t encounter any challenges in the tutorial, but when I wanted to modify my game to make look more interesting, there were a few things that I was unsure of. I wanted to create my own sound effect for when I pressed the A button. I spend some time adjusting some things that needed to be corrected, but at the end I accomplished what I was aiming for.
What things were modded?
I decided to add more food into the picnic so that it would look more like one. I added a strawberry and a lemon for the picnic. But it still looked very simple. What about some movement? Yes, great idea had come to me. I set each sprite with different velocities so that they would move around. I set each sprite to bounce on the walls of the screen so that the srite wouldn’t move out of my visual.
Humm but I also wanted to add some more animations, so I set confetii to fall within the food. If I pressed A, a couple of smiley faces would fall and if I pressed on the B button, a couple of bubbles would float up the screen.
Overall
I had fun playing around with the code, as I was experimenting with several blocks, trying to find out what happens if I did this or if I did that to the block’s positioning in the code. I see myself creating arcade type game son this website.
Comments
Post a Comment