how to use this function 'newAnimation'

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
TonyDwr
Prole
Posts: 7
Joined: Mon May 10, 2010 9:27 am

how to use this function 'newAnimation'

Post by TonyDwr »

Error:
main.lua:22: attempt to call global 'newAnimation' (a nil value)

what's wrong with function newAnimation?

I don't know how to use it.

can anybody help me?

my code:

function love.load()
...
boss_one_1 = love.graphics.newImage("planetfont.png")
line 22: ani = newAnimation(boss_one_1, 32, 32, 0.1, 0)
end

thank you..
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: how to use this function 'newAnimation'

Post by nevon »

You need to include AnAL first.
TonyDwr
Prole
Posts: 7
Joined: Mon May 10, 2010 9:27 am

Re: how to use this function 'newAnimation'

Post by TonyDwr »

e..how can i include AnAL? ..require(AnAL)?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: how to use this function 'newAnimation'

Post by Robin »

TonyDwr wrote:e..how can i include AnAL? ..require(AnAL)?
require("AnAL"), but you have to have AnAL.lua in your game directory (ie next to main.lua) first.
Help us help you: attach a .love.
TonyDwr
Prole
Posts: 7
Joined: Mon May 10, 2010 9:27 am

Re: how to use this function 'newAnimation'

Post by TonyDwr »

o , i know how to do it
thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests