I'm trying to do a bit of I/O when the window is closed. Here's me directory: Sir Slime -main.lua -conf.lua -save -(save file here) The code for writing a file to the save/ directory isn't working. It works fine in the GS, but no file shows up. -- main.lua function love.quit() love.filesystem.setIde...
Great! That fixed it, but now everything is running simultaneously. Is there a love.audio method or Source: method that can check to see which source is playing?
How would i iterate through an array of sounds and loop through them? Here's what I have for audio: src1 = {love.audio.newSource("harmoney.mp3"), love.audio.newSource("ghosts-n-stuff.mp3")} src1:setVolume(1.0) src1:setLooping(true) function love.keypressed(key, unicode) if key ==...
How would i loop a sound after it's played? Here is what i have for audio: src1 = love.audio.newSource("har'money.mp3") src1:setVolume(0.9) love.audio.play(src1) numSources = love.audio.getNumSources() if numSources == 0 then love.audio.play(src1) end It plays the sound, but doesn't loop i...