Simulation, Educational · 2017 · Released
MBoffin · July 1, 2017 · Web
Nobody has tracked this yet.
Keys Z - Next Step X - Auto/Manual Code This is the code displayed in the tutorial. Feel free to copy/paste it for your own use. Note: You can use as many or as few sprites as you want in the sp table, and in any order you want. function _init() t,f,s=0,1,4 --tick,frame,step sp={1,2,3,4,5,6} --sprites end function _update() t=(t+1)%s --tick fwd if (t==0) f=f%#sp+1 end function _draw() spr(sp[f],x,y) end Heres another implementation that assumes the tick, frame, and step variables and the sp table are all part of another table. (In this case, p, for player.) function _init() p={} --player p.t,....
Be the first to rank it.
Be the first to review Simple Animation in PICO-8.