Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

Sprites - Building

Published 3 years ago

The building sprite is probably the hardest to implement out of the current four, simply because it should only be activated when enemies are near, and deactivated when enemies are far away. We also must learn how to launch projectiles from the peak of our tower sprite, only when a certain frame within the animation has hit.

  • 0:00 Extend Building class from Sprite class

  • 5:10 Add offset to building rendering

  • 7:15 Shoot for every 6th frame of animation

  • 11:08 Position projectile correctly

  • 15:24 Only animate building when it has a target

  • 17:19 Correct z position of buildings

Comments

Want to participate?

Create a free Chris Courses account to begin

Login

No comments yet, be the first to add one

Providing the lift to launch your development career

© 2025 Chris Courses. All rights reserved.