Deraj21 / dino-dynamic-music

Godot project; you are a ino collecting music notes to add to the soundtrack
MIT License
1 stars 1 forks source link

Create bird behavior #22

Open Deraj21 opened 2 years ago

Deraj21 commented 2 years ago

At this point, this is just an idea. I think it could be cool to have the birds could have some behavior in the future, instead of just being a tile animated texture. I can think of 2 options (both would require the bird to be its own scene):

  1. program it so that you can place the bird, and give it a path object that determines where it flies to and from; it would start with an idle animation (pecking the ground or something), and would take off, following the path, until the end where it would "land", do another idle animation, and take off in the opposite direction. You could even tell the animator to flip horizontal when bird travels in the -x direction so that the path could zig-zag.
  2. OR program it so that all you have to do is place the bird, and it stays in an idle animation unless the player gets too close, and it flies away off screen. When the player is far enough away, the bird would respawn at its original location.