Quote:
Originally Posted by Clockwork
Alright D: I has a problem. Trying to make the level a little more alive, I made an animation:
But, in graal, It clips in the middle frames like this:
anyone have any solution?
|
Turn it into a gani, or turn it into a strip of frames and use a script like:
PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
//The name of your file.
this.imagename = "animated_strip.png";
//The horizontal length of each frame.
this.stripwidth = 32;
//The vertical length of each frame.
this.stripheight = 32;
//The number of frames.
this.maxframes = 10;
//The amount of time to wait before repeating in seconds.
this.waitlength = 2;
setTimer(.05);
}
function onTimeOut() {
setTimer(.05);
if (this.wait < this.waitlength) {
this.frame = 0;
this.wait += 0.05;
return;
}
setImgPart(this.imagename, this.stripwidth*this.frame, 0, this.stripwidth, this.stripheight);
this.frame++;
if (this.frame > this.maxframes) {
this.frame = 0;
this.wait = 0;
}
}
Dunno, should work.