I have a zombie that can follow the player but can't attack him.
Can somebody help me ?
Pin an invisible helper sprite to the zombie, slightly larger than the zombie itself. When player collides with or overlaps the helper sprite, do attack.
Develop games in your browser. Powerful, performant & highly capable.
Thanks it worked