08-05-2014, 05:28 PM
(07-29-2014, 07:06 AM)feiterry Wrote: A stupid question...
how can the AI walk near the char(HP=0)..?
I strongly encourage you to study this thread with the commands and states.
- Target the dead char
- Turn to him
- Walk in desired direction
-
if(self.state == 1)press direction-key once more to run (obviously not needed if only "walk to" is intended)
- If the distance is below a certain limit, stop the running (same as above)
- If the distance is below a certain limit, mp high enough, or whatever condition works for you, perform the desired move.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt