Search found 3 matches

by Forzi
Fri Oct 14, 2016 10:17 pm
Forum: Support and Development
Topic: [SOLVED] Loading image from absolute directory using IO.Open
Replies: 3
Views: 3650

Re: Loading image from absolute directory using IO.Open

Here is the working code if anyone else wanna load pictures outside of your project folder and with absolute paths! function LoadSprite (aSpritePath, aObjectName) local file = assert(io.open(aSpritePath, "rb")) local filedata, err = love.filesystem.newFileData(file:read("*all"), ...
by Forzi
Fri Oct 14, 2016 10:14 pm
Forum: Support and Development
Topic: [SOLVED] Loading image from absolute directory using IO.Open
Replies: 3
Views: 3650

Re: Loading image from absolute directory using IO.Open

Omg that works! Thank you so much @slime! Funny that only one extra letter made it work ^^ #programminglife
by Forzi
Fri Oct 14, 2016 8:29 pm
Forum: Support and Development
Topic: [SOLVED] Loading image from absolute directory using IO.Open
Replies: 3
Views: 3650

[SOLVED] Loading image from absolute directory using IO.Open

Hey, I'm trying to load an image into my level editor from an absolute file path. Right now i have it working with a relative spritepath but I need to have two identical "Graphics" folders, one for the game and one for the editor. (I don't want one of them under the folder of the other) Th...