[SOLVED]Error: ***** Does not exist

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
Kend2000
Prole
Posts: 2
Joined: Sun Apr 13, 2014 10:18 pm

[SOLVED]Error: ***** Does not exist

Post by Kend2000 »

I am trying to set a image for a player but I always get an error. Everything is spelled correctly.

player.SpriteImage = love.graphics.newImage("assets/images/red.png")

ERROR:

bin/player.lua:8: Could not open file assets/images/red.png. Does not exist
Last edited by Kend2000 on Mon Apr 14, 2014 5:40 pm, edited 1 time in total.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Error: ***** Does not exist

Post by Robin »

Could you upload a .love of your game?
Help us help you: attach a .love.
Kend2000
Prole
Posts: 2
Joined: Sun Apr 13, 2014 10:18 pm

Re: Error: ***** Does not exist

Post by Kend2000 »

Robin wrote:Could you upload a .love of your game?
https://www.mediafire.com/?ab7vc9cnciq5731
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Error: ***** Does not exist

Post by Karai17 »

You have your assets folder in /bin, for whatever reason. LOVE's paths always start where main.lua is, so you need to use "bin/assets/images/red.png".

I suggest not having a /bin folder though, since it makes no sense. None of your lua or png files are compiled binaries.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 5 guests