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 10: Destroyed IF Statement 1
Asteroids
Step 10: Destroyed IF Statement 1
Goal:
Let’s set up the conditions for the Asteroid colliding with the bullet or ship.
Steps:
From sprite menu, select the one called “
Big_Asteroid_1
“
From
Control,
place an
IF
block.
From
Operators,
place an
OR
block inside of the
IF
block.
Code:
Previous Lesson
Back to Course
Next Lesson