Author |
Message |
death bringer
|
Posted: Mon Jun 09, 2008 10:47 am Post subject: Help me please need a more experienced programer |
|
|
I need help with music
I would like to know what I would have to do to upload music "an Mp3 file"
Into a game and let it run in the back ground.
If you could,just post the codes you would have to use to play a music file thanks |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tallguy
|
Posted: Mon Jun 09, 2008 11:12 am Post subject: RE:Help me please need a more experienced programer |
|
|
dude, help section....... |
|
|
|
|
|
Insectoid
|
Posted: Mon Jun 09, 2008 11:27 am Post subject: RE:Help me please need a more experienced programer |
|
|
I believe it goes something like this:
Turing: |
var helpSection : int
var tutorialSection : int
var searchEngine : int
var title : string
if rightAnswer ~= fix_Program then
if rightanswer > tutorialSection then
tutorialSection
elsif rightanswer > searchEngine then
searchEngine
else
helpSection
title := "Descriptive Title"
end if
end if
put fix_program
to_many_smileys := bad
|
|
|
|
|
|
|
petree08
|
Posted: Mon Jun 09, 2008 12:18 pm Post subject: Re: Help me please need a more experienced programer |
|
|
Music.Play ("FileName.musictype")
look into processes for how to get it going in the background (if anyone knows how to have background music withput processes please pm me)
turing supports MP3s , MIDIs, and WAVs |
|
|
|
|
|
Aziz
|
Posted: Mon Jun 09, 2008 12:34 pm Post subject: RE:Help me please need a more experienced programer |
|
|
I believe it goes something like this:
code: | proc rules
postHelpTopicIn := "Help Forum"
useHALPMEEInTopic := false
if iAskedForYourCode then
reprimandMe
end if
end rules |
You guys are good to tell him how to do it. insectoid: ... wait, I though you actually gave if the code. Damn you beat me too it. petree08: that would be the proper response.
Btw, deathbringer, Turing has a HELP FILE with a section in it called MUSIC. Use it. |
|
|
|
|
|
jeffgreco13
|
Posted: Mon Jun 09, 2008 12:51 pm Post subject: Re: RE:Help me please need a more experienced programer |
|
|
insectoid @ Mon Jun 09, 2008 11:27 am wrote: I believe it goes something like this:
Turing: |
var helpSection : int
var tutorialSection : int
var searchEngine : int
var title : string
if rightAnswer ~= fix_Program then
if rightanswer > tutorialSection then
tutorialSection
elsif rightanswer > searchEngine then
searchEngine
else
helpSection
title := "Descriptive Title"
end if
end if
put fix_program
to_many_smileys := bad
|
Insectoid that code works perfect, and it's so verstile. I'm all about helping a programmer in need, but I mean putting this topic in Turing Submissions is just ignorant. We're not trying to gang up on you death bringer, but the rules are NOT difficult to follow. |
|
|
|
|
|
Aziz
|
Posted: Mon Jun 09, 2008 12:55 pm Post subject: RE:Help me please need a more experienced programer |
|
|
He has his answer. Back into the bushed we go. |
|
|
|
|
|
Insectoid
|
Posted: Mon Jun 09, 2008 3:47 pm Post subject: Re: Help me please need a more experienced programer |
|
|
Wow, no one flamed me for being rude...I did forget something though, the F10 help. Crap, now my teacher's going to fail me on this project... |
|
|
|
|
|
Sponsor Sponsor
|
|
|
death bringer
|
Posted: Tue Jun 10, 2008 12:59 am Post subject: RE:Help me please need a more experienced programer |
|
|
so for example how would i make fury of the storm work i tried using these codes
var helpSection : int
var tutorialSection : int
var searchEngine : int
var title : string
if rightAnswer ~= fix_Program then
if rightanswer > tutorialSection then
tutorialSection
elsif rightanswer > searchEngine then
searchEngine
else
helpSection
title := "Fury_of_the_storm.Mp3"
end if
also tried this
Music.Play ("Fury_of_the_storm.Mp3") |
|
|
|
|
|
jinjin
|
Posted: Tue Jun 10, 2008 1:06 am Post subject: Re: Help me please need a more experienced programer |
|
|
First, make sure that your mp3 file is in the same folder as your turing file. Then, all you need is the one line:
Music.PlayFile ("Fury_of_the_storm.Mp3")
To stop the music at any time, use Music.PlayFileStop.
To loop the music, use:
Music.PlayFileLoop ("Fury_of_the_storm.Mp3").
(Sorry for giving the entire answer guys, but this was a simple one line code thing so I don't believe it would really give away too much) |
|
|
|
|
|
death bringer
|
Posted: Tue Jun 10, 2008 1:09 am Post subject: RE:Help me please need a more experienced programer |
|
|
but do i put like this down M:\Documents\Extra\02 - Fury of the Storm.mp3 |
|
|
|
|
|
jinjin
|
Posted: Tue Jun 10, 2008 1:15 am Post subject: Re: RE:Help me please need a more experienced programer |
|
|
death bringer @ Tue Jun 10, 2008 1:09 am wrote: for anyone who want this is the song here it is also i am wondering if the code is in a process
proscess musicabc
loop
(then the code for playing and loading the MP3 file)
end loop
end musicabc
fork musicabc
You don't need the loop in the process as fork already assumes this. Just having Music.PlayFile in there is good enough.
death bringer @ Tue Jun 10, 2008 1:09 am wrote: but do i put like this down M:\Documents\Extra\02 - Fury of the Storm.mp3
You can just put the entire directory in quotes then after Music.PlayFile ("M:\...etc")
By the way, there's a tut here for this:
http://compsci.ca/v3/viewtopic.php?t=190&postdays=0&postorder=asc&start=0 |
|
|
|
|
|
|