NoxBrutalis Posted July 10, 2018 Share Posted July 10, 2018 Hello, I'm experimenting with some basic animations. I have a 4 frame idle animation and would like to set the speed at which transitions occur from frame to frame. In an example and many other examples - the code looks like this: this.anims.create({ key: 'idle', frames: this.anims.generateFrameNumbers('playerSheet',{start: 0, end: 3}), framerate: 16, repeat: -1 }); this.anims.play('idle', objLayer); however the animation is very fast - stupidly so. So I tried using a different framerate expecting different results but they weren't different results. In fact, even setting the framerate to 0 didn't change the speed of the animation. Is there another property that achieves what I want to do - i.e slow down the animation? Otherwise, what's the point of the framerate property? Any help would be appreciated, thanks. Link to comment Share on other sites More sharing options...
B3L7 Posted July 10, 2018 Share Posted July 10, 2018 Try frameRate instead of framerate. NoxBrutalis 1 Link to comment Share on other sites More sharing options...
NoxBrutalis Posted July 10, 2018 Author Share Posted July 10, 2018 Thank you so much, that was exactly the problem. There seems to be an inconsistent mix of camelCase usage in phaser or am i just tripping? Either way, problem solved and you have my gratitude, dude! Link to comment Share on other sites More sharing options...
B3L7 Posted July 10, 2018 Share Posted July 10, 2018 You're welcome. In my experience I have found the camelCase to be pretty consistent. Link to comment Share on other sites More sharing options...
Recommended Posts