I am trying to load animations and seem to have all the properties set in order to do this according to the instructions, however I keep getting the error:
quintus_anim.js:34 Uncaught TypeError: Cannot read property 'rate' of undefined
in the console, it is the variable 'anim' that is undefined:
var anim = Q.animation(p.sprite,p.animation)
p.sprite is defined as "Lisa_run" and p.animation is defined as "left".
I am trying to load animations and seem to have all the properties set in order to do this according to the instructions, however I keep getting the error:
quintus_anim.js:34 Uncaught TypeError: Cannot read property 'rate' of undefined
in the console, it is the variable 'anim' that is undefined:
var anim = Q.animation(p.sprite,p.animation) p.sprite is defined as "Lisa_run" and p.animation is defined as "left".
Here is my code:
http://pastebin.com/wZQyzm1m