Question by
Fabio23000 · Nov 05, 2016 at 12:44 PM ·
tapkillmonster
Killing monster in a clicker game
Hi guys, I want to create a Clicker Game but I don't really how to put a monster in the center of the screen. I just want to tap him and deal him damage based on my items. How can I do? Thank you for reading
Comment
Answer by YoungDevelops · Jan 02, 2017 at 09:53 PM
Use instantiate (https://unity3d.com/learn/tutorials/topics/scripting/instantiate) to spawn the monster. This is how I would damage him by tapping. public int itemDMG; public int MonsterHealth; if(Input.GetMouseButtonDown(0)) MonsterHealth - itemDMG;