Search found 3 matches
- Sun Mar 14, 2021 9:07 pm
- Forum: Support and Development
- Topic: Getting error "background.lua:3: attempt to index local 'self' (a nil value)," how to fix this?
- Replies: 2
- Views: 3483
- Sun Mar 14, 2021 7:51 pm
- Forum: Support and Development
- Topic: Getting error "background.lua:3: attempt to index local 'self' (a nil value)," how to fix this?
- Replies: 2
- Views: 3483
Getting error "background.lua:3: attempt to index local 'self' (a nil value)," how to fix this?
I keep getting this error despite this same thing working in my other projects, what am I doing wrong? Here is the code for reference: local Background = {} function Background:load() self.image = love.graphics.newImage("assets/background.jpg") self.x = 0 end function Background:update(dt)...
- Sat Jan 23, 2021 4:36 am
- Forum: General
- Topic: Adaptive music?
- Replies: 1
- Views: 6027
Adaptive music?
So, I was simply wondering if there was any way to creat adaptive music in love2d, and if anyone had advice on making it. I had this thought after playing Celeste and wanted to try and use the same concepts of adaptive music in that game within my own. Any advice is appreciated!