Search found 1 match

by PamelaFEvans
Fri Aug 10, 2012 12:00 pm
Forum: General
Topic: Best way to animate?
Replies: 16
Views: 7991

Re: Best way to animate?

local anim8 = require 'anim8' local image, animation function love.load() image = love.graphics.newImage('path/to/image.png') local g = anim8.newGrid(32, 32, image:getWidth(), image:getHeight()) animation = anim8.newAnimation('loop', g('1-8,1'), 0.1) end function love.update(dt) animation:update(dt...