Spell casting (New)

Planning
Step 1
In this lesson, we will make a game where a wizard cast spells on a dragon.
1
Step 2
Start by deleting the cat sprite
2
Step 3
Choose a new backdrop
6
Challenge
Step 4
Add two sprites for the wizard and dragon

Press this button for adding a new sprite:

4
Check Your Work
Step 5
You should now have a wizard and dragon sprite
2
Step 6
You will need to flip the dragon to face left
Step 7
Add code to the dragon and wizard to start in the correct spot and size

WIZARD CODE

7

DRAGON CODE

8
Check Your Work
Step 8
Click the green flag and make sure you see something like this:
9
Step 9
Let's make our dragon do cool effects when we press 1, 2, or 3 key and reset when space key is pressed
10
Step 10
Let's also make the wizard do a one second animation and play a sound for pressing 1, 2, or 3
11
Information
Step 11
COOL PROGRAMMING TRICK INCOMING!

RIGHT CLICK the top of a code block and press Duplicate to make a copy of the block

Step 12
Add two more blocks to the wizard sprite

Duplicate the first one twice if you're feeling like a lazy programmer

12
Check Your Work
Step 13
Test out the spells by pressing 1, 2, 3, and space key
Step 14
Last step is to make an instructions sprite

Draw a new sprite by pressing this button:

13
Step 15
Choose a text color for the instructions
14
Step 16
Press the Text button
15
Step 17
Click on the screen and type the instructions

The instructions I typed:

Press 1, 2, or 3 for spells
Space to reset

Check Your Work
Step 18
The lesson is now complete!
16
Spell casting (New) Info

Account

MVCode Clubs

Created By

Missing tiny aaronjau101

Course:

Intro to Scratch: 1st/2nd Grade

Access Level

premium

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach