Okay, I wanted to have multiple idle animation for my game- so that the main character would randomly blink, yawn and turn her head.
in the global main script's repeatedly execute I do this:
- i store the main character's view, loop and frame in the variables a, b and
c. So I can check what image is displayed each game frame.
- then if the character reaches the last frame in it's current loop of any of the three idle animations, i use setcharacteridle to switch to another idle animation with an if statement.
basically this works pretty well, but for some reason the last frame of the current idle anim is a bit too fast- i don't think anyone who doesn't know what the frames of the animation look like will notice it, but i find it annoying.
so, has anyone ever tried to achieve the same effect as i do, and is there a more elegant workaround?
this would be another fine addition to the next version of AGS, i think... ;D
Rather than doing this, couldn't you simply check in repeatedly execute every so often, and if the character is not animating, change their idle view? That way, the next time it does kick in, it will use the new view.
Ah. Yes, that works better 8) Thank you!