I'm trying to make game. Everything is great: I got massive amount of weapons and armors to wield and wear and everything is working well.
Now... I'm trying to figure out how to make Monsters attack you.
I want Monsters to start moving towards me if I get close enaugh. Ant when Monsters are close to me I want them to attack me.
Please help me out. It's only thing that I can't figure out!
ID:155179
Aug 23 2011, 6:33 am
|
|
In response to Jmurph
|
|
That isn't what I want, but thanks for quick answer.
Can you please make a full code for it? Iäm beginner in here and have no ideas how I should do it. |
In response to Marekgren112
|
|
try this it will tell you every thing you need
|
In response to Hassanjalil
|
|
Thank you so much!!! This helped me out!
You just answered my others questions: How to make hit apear on mob, and so on. |
See the simple loop demo.
Basically, you have a call that checks every so often for conditions then executes actions (or not) based on those conditions.