Search found 2 matches

by Wanda Siren
Wed May 01, 2019 8:41 am
Forum: Support and Development
Topic: placing anim8 parameters inside a table
Replies: 4
Views: 770

Re: placing anim8 parameters inside a table

hello again, i followed everyone advice and i finally managed it to work! local anim8 = require "anim8" function love.load() player = {} player.img = love.graphics.newImage("sheet.png") player.anim = anim8.newAnimation(anim8.newGrid(72, 117, player.img:getWidth(), player.img:getHeight())('1-7',1), 0...
by Wanda Siren
Tue Apr 30, 2019 6:01 pm
Forum: Support and Development
Topic: placing anim8 parameters inside a table
Replies: 4
Views: 770

placing anim8 parameters inside a table

hello, i was testing around the engine since i'm a beginner, but i got an error: Syntax error: main.lua:6: '}' expected (to close '{' at line 4) near 'local' with this code: local anim8 = require "anim8" function love.load() player { img = love.graphics.newImage("sheet.png") local g = anim8.newGrid(...