Jump to content
  • Advertisement
Sign in to follow this  
jagguy2

space invaders effects

This topic is 3425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

how do i create the green blocks ? It is not an image and it is simply drawn and when you shoot it , it crumbles . How do i create this effect of shooting down the green block? http://www.spaceinvaders.de/

Share this post


Link to post
Share on other sites
Advertisement
It's simply just a square block that has an associated "health" with it. If the block has full "health," you draw it as a full green block. When you shoot it, it looses "health" and, depending on how much "health" it has, you just draw different versions of the block.

You could easily create a set of images, the first one being the full block with full health, the next image being the block missing a few pieces after being shot once, the image after that missing a few more pieces after being shot again, etc. Then, for each time you shoot the block, you just move down the list of images that show a slowly degrading, crumbling block. Once the block looses all its health and is destroyed, you just remove it from the game.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!