The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.38 / 5.00 36,385 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 13,902 ViewsMy second thread at newgrounds ~
I'm making a game and my fps is 30. At 30 fps animations is very fast,
so i'd like to control my animations in some way so that they are not
depending on fps. I managed to one time by using a timer, i've tried
doing the same thing but failed =P
I'd appreciate if you'd give some suggestions.
thank you,
Daniel
I might have solved it myself. The setInterval() method looks
promising enough. If anyone else is wondering about this
i read about it here http://www.republicofcode.com/tutorials/
flash/setinterval/
happy actionscripting ~
in my case the setInterval method apparently makes everything lag, ALoT.
i used it to inside my "character walking" movieClip make it move to the next frame
function anispeed():void {
gotoAndPlay(nextFrame)
}
setInterval(anispeed,5000)
I guess the timer method is the way to go =P
At 5/9/09 04:56 AM, Dafali wrote: in my case the setInterval method apparently makes everything lag, ALoT.
the lagging was caused by my shitty computer >.>
Hey dude, hope this helps.
At 5/9/09 05:05 AM, mongoid wrote: Hey dude, hope this helps.
http://www.kirupa.com/forum/showthread.p hp?p=1876826
It doesn't since i don't want to change my framerate, i only want
to change the speed of one animation
finally found what i was looking for ~
function wait() {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, 1000); // stop for 1 second
}
wait();