# Enemy Follow Player Plus Life and player Life

**URL:** <https://phaser.discourse.group/t/enemy-follow-player-plus-life-and-player-life/5755>\
**Category:** Phaser 3\
**Created:** [April 3, 2020, 3:11pm UTC](https://phaser.discourse.group/t/enemy-follow-player-plus-life-and-player-life/5755 "2020-04-03T15:11:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NowakSotto](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/nowaksotto/32/3088_2.png) [@NowakSotto](https://phaser.discourse.group/u/NowakSotto)\
**Post date:** [April 3, 2020, 3:11pm UTC](https://phaser.discourse.group/t/enemy-follow-player-plus-life-and-player-life/5755/1 "2020-04-03T15:11:23Z")

</div>

Hey guys, im new in phaser 3.

Im trying to make a game similar with the example top down shooter in the phaser site.

So after doing that i want to make the enemy follow the player to attack him.

Plus i want to add life to enemy and player.

Thanks for the help

---

<div class="post-metadata">

**Author:** ![123survesh](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/123survesh/32/2274_2.png) [@123survesh](https://phaser.discourse.group/u/123survesh)\
**Post date:** [April 4, 2020, 2:35pm UTC](https://phaser.discourse.group/t/enemy-follow-player-plus-life-and-player-life/5755/2 "2020-04-04T14:35:12Z")

</div>

A person called digitsensitive has a repo in github with some good game templates. You can clone them to your pc and run them and see how they work.  
There is also a template for Super Mario, so it should help you with adding health and enemy follow up code.

> **[digitsensitive/phaser3-typescript](https://github.com/digitsensitive/phaser3-typescript)**
>
> Phaser 3 and TypeScript. Contribute to digitsensitive/phaser3-typescript development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![NowakSotto](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/nowaksotto/32/3088_2.png) [@NowakSotto](https://phaser.discourse.group/u/NowakSotto)\
**Post date:** [April 6, 2020, 2:51am UTC](https://phaser.discourse.group/t/enemy-follow-player-plus-life-and-player-life/5755/3 "2020-04-06T02:51:17Z")

</div>

thansk man, i go take a good look and study in his code.
