Asteroids
Step 40: Ship Collision with Big Asteroid
Step 41: Duplicate Code
Asteroids Part 2
Introduction
Step 1: Change the Ship Costume to Standard
Step 2: Create Hit1 Broadcast
Step 3: Change Costume for Hit 1
Step 4: Change Costume for Hit 2
Step 5: Change Costume for Hit 3
Step 6: Create Variables
Step 7: Delete Code
Step 8: Compare
Step 9: Add Hit Broadcast
Step 10: Destroyed IF Statement 1
Step 11: Destroyed IF Statement 2
Step 12: Finding the Spawn Point 1
Step 13: Finding the Spawn Point 2
Step 14: New Message
Step 15: Wait and Delete
Step 16: Respawn Code
Step 17: Duplicate and Change Code
3 of 4
Previous Lesson
Next Lesson
Step 2: Create Hit1 Broadcast
Asteroids
Step 2: Create Hit1 Broadcast
Goal:
Let’s create a broadcast message for a hit.
This will let us code when the ship gets hit.
Steps:
From
Events,
place a
When I receive
block.
Click the drop down
menu,
and select
New message
.
In the window type, “
Hit1
.”
Code:
Click to replay
Previous Lesson
Back to Course
Next Lesson