I have hit a brick wall with my new program, as it is giving an error that i do not understand. I will attach a .love of the game, so that you can see the problem. I have looked at this for a while and can not figure out why it is not working. Am i making a newbie mistake???
Thanks!
Unexpected error! Please help!
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Unexpected error! Please help!
- Attachments
-
- Love2DMadness.zip
- A zip containing the .love and src of the program.
- (204.58 KiB) Downloaded 62 times
Check out my blog - The place to find out about the latest tech news! http://thegeekcircle.blogspot.co.uk/
Re: Unexpected error! Please help!
You need to call world.loadGraphics, where pauseButton is loaded, some time before the first time love.draw() is called.
For example, this doesn't crash:
For example, this doesn't crash:
Code: Select all
function love.load()
gravity = 30
platformBottom = love.graphics.getHeight() - ( love.graphics.getHeight() / 4 )
world.load()
player.load()
world.loadGraphics()
end
Re: Unexpected error! Please help!
Aha thank you! that will help a lot:) a simple schoolboy error:/
Check out my blog - The place to find out about the latest tech news! http://thegeekcircle.blogspot.co.uk/
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 199 guests