Search found 6 matches

by imnotanerd
Wed Jun 01, 2011 1:59 am
Forum: Support and Development
Topic: filesystem Not Working
Replies: 4
Views: 1798

Re: filesystem Not Working

Ok, I see it now. Now I have another question.

Code: Select all

love.filesystem.read( name, size )
What is the number for size supposed to be? In the wiki, it says (all) next to it, and this has boggled me. What should be in place for size?
by imnotanerd
Sun May 29, 2011 8:49 pm
Forum: Support and Development
Topic: filesystem Not Working
Replies: 4
Views: 1798

filesystem Not Working

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...
by imnotanerd
Thu Dec 30, 2010 10:46 pm
Forum: Support and Development
Topic: Array of sounds and looping them
Replies: 6
Views: 2781

Re: Array of sounds and looping them

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?
by imnotanerd
Thu Dec 30, 2010 9:35 pm
Forum: Support and Development
Topic: Array of sounds and looping them
Replies: 6
Views: 2781

Array of sounds and looping them

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 ==...
by imnotanerd
Thu Dec 30, 2010 6:42 pm
Forum: Support and Development
Topic: Looping sound?
Replies: 2
Views: 2083

Re: Looping sound?

It works now. Thanks!
by imnotanerd
Thu Dec 30, 2010 7:02 am
Forum: Support and Development
Topic: Looping sound?
Replies: 2
Views: 2083

Looping sound?

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...