Hi Everyone.
Right. I am doing very well with my game although still a long way to go. But I have a small annoying problem.
In one of my rooms I have a piece of machinery that moves up and down. For this I use-
Code: ags
Now some things happen and the machine grinds to a halt. For this I use-
Code: ags
This is my question.
Is there a way that I can get the animation to stop on a specific frame? (At the moment it stops on whatever frame it wants).
Also, just out of interest, is there a way to start an animation on a specific frame?
Any help would be wonderful.
Thankyou.
Jay.
Right. I am doing very well with my game although still a long way to go. But I have a small annoying problem.
In one of my rooms I have a piece of machinery that moves up and down. For this I use-
object[0].SetView(7);
object[0].Animate(0,5,eRepeat,eNoBlock,eForwards);
Now some things happen and the machine grinds to a halt. For this I use-
if (object[0].Animating) {
object[0].StopAnimating();
}
This is my question.
Is there a way that I can get the animation to stop on a specific frame? (At the moment it stops on whatever frame it wants).
Also, just out of interest, is there a way to start an animation on a specific frame?
Any help would be wonderful.
Thankyou.
Jay.