Topic was automatically imported from the old Question2Answer platform.
Asked By
InstelGames
Old Version
Published before Godot 3 was released.
Hey! does anyone have any suggestions where to start?
My goal is to make a fish in an area, and make them move around and not leave the area while bobbing up/down and facing left (when moving left) etc.
As well as swim away when a player comes near?
I tried making a pos2d switch to a random location every second in an area and have the fish navigate to that area, but how would I make it face left when moving left or right when moving right? or is this a bad approach?
Sometimes ago, I tested something with particles acting “like” a fish … maybe it can help ?
I use trigonometry sine wave to set the speed and random rotation at random time …