Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AI question about revive
#11
(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
Reply
Thanks given by: feiterry




Users browsing this thread: 2 Guest(s)