Re: [A82: monster ai]
[Prev][Next][Index][Thread]
Re: [A82: monster ai]
What you're talking about isn't really AI. Not more than a tiny bit. Just
figure out some variables that can fully describe the situation for the
monster (position, direction it's facing, how many times it's been hit, if
it's just been hit) and then write a part of the program to determine what
the monster should do based on its situation. Test if it's facing the
player. If it is and it hasn't been just hit, for example, then it shoots.
If it has been falling for a certain amount of time (a certain number of
program loops), then it dies. Things like that.
References: