How do I make an enemy to move towards the player, while it moves in a wave, just like the pic I attached
Develop games in your browser. Powerful, performant & highly capable.
Giving the enemy the Sine behavior may work, depending on what other behaviors it's using. You can also have the enemy pinned to an invisible object which moves towards the player directly, while the enemy itself uses Sine. That way you can combine several behaviors if you need to.