Search found 2 matches

by minenice55
Tue Oct 24, 2017 12:21 am
Forum: Support and Development
Topic: love.graphics.newimage returns nil in module
Replies: 3
Views: 3249

Re: love.graphics.newimage returns nil in module

Thanks for the answer! I just had to load the images outside of love.load (not what I was expecting but ok)! So it seems like main.lua runs code on other lua files, then it's own, correct?
by minenice55
Mon Oct 23, 2017 12:01 am
Forum: Support and Development
Topic: love.graphics.newimage returns nil in module
Replies: 3
Views: 3249

love.graphics.newimage returns nil in module

I'm brand new to Love and even Lua as a whole so I may be making some dumb mistake, but when I set "image", for instance, with love.graphics.newimage and a corresponding file path and draw it with love.graphics.draw in main.lua, it runs fine. However, when I run it in karatekaanim.lua (whi...