Quote:
Originally Posted by The_Kez
This isn't a very ellaborative answer, I know there is such a command but I wouldn't have posted this forum topic if I didn't need help that required an answer beyond what the Graal wiki can provide.
When you use this command is it necessary to check the direction of the baddy? And since the baddy is not a showcharacter how can you check which direction the baddy is facing in the first place?
Or would actually making it a showcharacter and then using setcharani on it work well enough?
|
PHP Code:
function onCreated()
{
this.ani = "myidle";
onMovementFinished();
}
function onMovementFinished()
{
if ( shouldMove() )
{
// move again
this.ani = "mywalk";
}
else
{
this.ani = "myidle";
scheduleevent( 1, "MovementFinished"", "" );
}
}
Something like that has always worked for me. showcharacter() isn't neccesary.