Asteroids Game Stage 4 – Collision Detection

{loadposition adposition4}

Stage 4 – Collision Detection

In stage 4, you need to add collision detection to enable both the spaceship to be destroyed by the asteroids, and the asteroids to be able to be destroyed by the shots fired from the spaceship.The collision detection will be handled by comparing the object’s x and y properties and also the use of Flash Actionscript’s built-in hitTest function. In the video tutorials below I will also add an extra lives movieclip in order to track how many games lives are left in the game.

Video Tutorials







Author: Dan

Dan teaches computer networking and security classes at Central Oregon Community College.

Leave a Reply

Your email address will not be published.