Get $500+ of the best After Effects files, video templates and music for only $20!
Use Vector Regions to Implement Field of View in a Flash Game

Use Vector Regions to Implement Field of View in a Flash Game

This entry is part 1 of 2 in the series Vector Regions

In this tutorial, you will learn how to cast a field of view of a turret guarding a specific location. When an enemy is within the turret's field of view, the turret will shoot at them. Vector math will be used to help in implementing this field of view.

Vector Regions: Hiding From a Field of View

Vector Regions: Hiding From a Field of View

This entry is part 2 of 2 in the series Vector Regions

Previously, we explored the approach of using vector regions to implement the field of view of a turret. Troops approached the turret on open field and no hindrances lay between them. Now suppose there is a hinderance, say a wall, that obscures the visibility of troop from turret; how should we implment that? This tutorial suggest an approach to tackle this issue.