shazz / Union-Demo-HTML5-Remake

Another HTML5 remake of THE source of everythings !
http://www.wab.com - http://www.melonjs.org
3 stars 2 forks source link

Slow down Charly movements #2

Closed shazz closed 12 years ago

shazz commented 12 years ago

In the real demo, the charly sprite update was really slower, it gives him a cool attitude :) But a fast pace !

melonjs commented 12 years ago

that's easy, just need to adjust velocity and/or animationspeed to make it smoother. note animation speed works with frame count, so you can really adjust to precisely what you want.

jacestk commented 12 years ago

just put an incremental var :D var anim = 0; if (anim++>=3){ // each 3 frames anim = 0; displayCharlie(); }