this is an enemy, which runs towards the player (pacblob controlled by moving with mouse) with a 2.5D camera angle, you could use this to make a boxhead type game.
when the enemy gets close, it will also attack.. but this is a demo, so you cant kill it and it cant kill you.
its a simple script, consisting of a change animation for each of the 8 stages.
if(animindex!=aangle) -> aangle is my shortcut for the (angle/360)*8;
{
if(aangle==0)
{
change to rotation 0
}
}
its the same for the attacking, but with an attacking variable.
any questions, post 'em here, if its useful... points would be nice.
(the numbers are my variable testers, they are... useless to you really)