Page 1 of 1
animation methods anim8
Posted: Wed Sep 17, 2014 2:17 pm
by torreao
what are the strings representing animation methods in anima8 ?
Can you give examples?
Re: animation methods anim8
Posted: Wed Sep 17, 2014 4:44 pm
by kikito
anim8 has no animation methods. Are you looking at an older version?
EDIT:
You mean an example of
each of the methods of the actual Animation "class"?
You usually only need two:
animation:update(dt), which moves the animation forward (or backward) a bit, and
animation:draw(), which draws it on the screen. If you don't know the others, you probably don't need them yet
You can see the code of the demo in the demo branch, in case you want to give it a look:
https://github.com/kikito/anim8/tree/demo