Patch 1 Released.
[Added] soundStop function
[b]Download:[/b]
[url]http://www.filefront.com/15267777/Patch_1.zip[/url]
Thanks Anthoni, you made my Ipod dream a reality :)
[editline]11:41PM[/editline]
I tried using
[lua]
if (cmd == "Sleep Away") then
playsound(SleepAway.mp3 )
end
[/lua]
and it just closes when I type the command to play the song. Am I doing something obviously wrong? :doh:
SleepAway.mp3 should be in quotes.
playSound("SleepAway.mp3")
This S should also be capitalized.
That didn't fix it either :frown:
[editline]11:48PM[/editline]
It says Could not open sound file: SleepAway.mp3
[editline]weiners[/editline]
It *IS* in the sound folder and I did do the include("SleepAway.mp3") thing in main.lua
If you run the GTE exe from the command line, it won't automatically close when it errors, it should allow you to debug it easier.
Doesn't matter.
What do you mean?
playSound("sound/SleepAway.mp3")
...and you don't need to include it.
Ok, just a little confused on this still. Thanks that worked.
[editline]11:55PM[/editline]
Now I need to figure out this soundStop function :v:
Im for your idea, truely. But... Maybe you should brush up on your lua first, Get some notes jotted down, and have some functions on hand for what you need. Then you shouldnt have any trouble ^^
I know Lua, I'm just not used to making big stuff like a game, (albeit a rather old style one)
stopSound( filename )
This would be much more interesting if you created animations in the console box. Make it send 20 lines of code 10 times a second that makes up an image.
I "THINK" thats called ACSI or ASCI
[QUOTE=Anthoni_c;19360888]stopSound( filename )[/QUOTE]
Can I make it stop all sounds at once?
can i change the name of the .exe without damaging the program?
Yep
[editline]01:26AM[/editline]
How would I make stopSound() stop all sounds at once?
kewl
now my game has a theme and a name!
[php]
sounds = {}
function PlaySound(sound)
playSound(sound)
sounds[sound] = true
end
function StopSound(sound)
stopSound(sound)
sounds[sound] = nil
end
function StopAllSounds()
for k, v in pairs(sounds) do
StopSound(v)
end
end
[/php]
those should work.
ok cool thanks
edit:nope :( didn't work
hrmmm
did you copy that into your main.lua?
maybe try changing the names of the functions
and for this to work you would have to change all your "playSound"s to "whatever"s, and so on.
Thank you :v:
I coded a pretty nice wallet in mah game :dance:
[editline]02:24AM[/editline]
I saw this and almost fainted
[QUOTE=File Front]Popularity: 0% [/QUOTE]
Well there is only like 3-4 folks using the app.
Yeah but.. :iia: :v:
Seriously, this is awesome dude. I can pretty much make an entire game off of this.
Well a text game...
it's really just a console written in C that you can use with lua...
It's still awsome :P
Sorry, you need to Log In to post a reply to this thread.