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
[SOLVED]Error: ***** Does not exist
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
[SOLVED]Error: ***** Does not exist
Last edited by Kend2000 on Mon Apr 14, 2014 5:40 pm, edited 1 time in total.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Error: ***** Does not exist
Could you upload a .love of your game?
Help us help you: attach a .love.
Re: Error: ***** Does not exist
https://www.mediafire.com/?ab7vc9cnciq5731Robin wrote:Could you upload a .love of your game?
Re: Error: ***** Does not exist
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.
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é
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], slime and 3 guests