Advertisement
Guest User

ANIMATION

a guest
Apr 23rd, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. function love.animate()
  2.     animationNameHere = ("single", imagewidth, imageheight, fps, filename, "loop")
  3.     OtherAnimationHere = ("multiple", fps, filename, numberOfFrames, "nonloop")
  4.     // the single or multiple determines whether or not it is one or more files in the animation
  5.     // the two are different because when in a multiple file type animation would the size need to be specified?
  6.     // the way to display these would be as follows
  7. function love.draw()
  8.     love.draw.graphics(animationNameHere, x, y, ect.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement