Hi, I’m making an enemy that attack/throw a “boomerang” to player every x seconds. How I can achieve it ?
You can use InvokeRepeating() to repeat something every X seconds.
But how to make it like a “boomerang” ?
Should it always travel the same distance? Then you might use an animation. Otherwise, you might use an Invoke() once again Start it off with the speed it should use, then use Invoke() to trigger after a short while and set the speed to the opposite direction.
Yeah thanks I have found the solution…