Page 1 of 1

[SOLVED] How do I import files from specific folder in the game directory?

Posted: Wed Oct 09, 2019 3:45 pm
by YounYokel
Hello! It's quite weird for me, but when I'm setting the new font but I cannot import the font from a folder, I need to type the name only. If that file doesn't exists in the project folder, game will crash.

Code: Select all

local myFont = love.graphics.newFont( "fonts\opensans.ttf", 14 )
What should I do to allow the folders in my project?

Re: How do I import files from specific folder in the game directory?

Posted: Wed Oct 09, 2019 6:23 pm
by pgimeno
Use / instead of \

Re: How do I import files from specific folder in the game directory?

Posted: Thu Oct 10, 2019 4:36 pm
by YounYokel
pgimeno wrote:
Wed Oct 09, 2019 6:23 pm
Use / instead of \
Oops. That was silly :P