CobeyH / Leora

2D Moth Puzzle Game written in Unity
4 stars 1 forks source link

Birds #223

Open CobeyH opened 1 year ago

CobeyH commented 1 year ago

Describe the solution you'd like Some form of enemy that patrols a path. They will function in a similar fashion to wasps but they won't be attracted to light.

CobeyH commented 1 year ago

How should we configure bird movement in the scene? I suggest that we create an array of positions that form a path for the birds. The bird script will have an option to either loop that path, turn around and traverse the path backwards when they reach the end, or stop moving when they reach the end of the path.

How should the birds deal with obstacles though? I was thinking the birds should check the visibility of the next position in their path before trying to move there. It will wait at its current point until the next point in the path is clear of obstacles.