I'm working on a project that I need a bat to follow the player in order to attack him.
1) Follow the player [done]
2) Don't change the angle of the animation [incomplete]. the bat should fly in the horizontal at all times.
3) Subtract 1 from life [done]
4) Get close enough to hit the player [not good]
5) If you don't move, the bat will hit the player and the animation will go crazy [need to be fixed]
Here is the file ?
Develop games in your browser. Powerful, performant & highly capable.
Change the bullet 'set angle' property to 'no'. And in your events: change 'bat: set angle' to 'bat: set angle of motion' with the value angle(bat.x, bat.y, mainPlayer.x, mainPlayer.y).
What ramones said :)
ramones You are the guy!