I need some help loading an external sprite sheet.

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
ThatChillHomie
Prole
Posts: 5
Joined: Sun Jun 10, 2018 1:52 am

I need some help loading an external sprite sheet.

Post by ThatChillHomie »

Ive been trying to load his sprite sheet of mine but it keeps giving me an error saying it cant open the file and that it ' does not exist ' . Heres what ive done:

player = love.graphics.newImage("Desktop/Side Scroller/gfx/Sprite.png")



If anyone can help me that would be great :( , thanks
randomnovice
Party member
Posts: 126
Joined: Sat May 09, 2015 9:15 pm

Re: I need some help loading an external sprite sheet.

Post by randomnovice »

Hi, I think Love would usually access files either within the game folder or relative to its save directory.

Try putting your sprite file inside the game folder and take away the rest of the directory path.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot], Google [Bot] and 6 guests