
-----------------------------------
ecookman
Tue Oct 28, 2008 10:47 am

help with game
-----------------------------------
i am trying to make a 'choose-your-own-ending game (ya easy right)

well here comes the complex part.
i am tying to play a sound file (which i have SUCCESSFULLY done this)

BUT!!!!
i am trying the sound file to play in the background of the script so the rest of the questions from the plot can be answered, not stopping, playing the sound, then text


so here is the code:
var win : int := Window.Open ("graphics:700;550")
var choice1,choice2,choice3,choice4,choice5,choice6,choice7,choice8 : string
colorback (black)
cls
color (white)
locate (1,35)
put "SURVIVAL GAME"
locate (3,1)
color (42)
put "In this game you will have to follow a story line that every choice you make, could be your last!"
put "You will  play through as character named Link. He is just your every day       farm-boy, but when people are in need he becomes a legendary hero who has been  chosen "..
put "by the gods to protect the vast lands of Hyrule!"
locate (10,1)
put " SO SADDLE UP, WHAT ARE YOU WAITING FOR. AN ADVENTURE LIES AHEAD!!!"
delay (1000)

%here is my problem the script stops

 Music.PlayFile ("hyrule field.wav")

cls
put "LETS GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!"


if anyone wants i'll send them the song so the script works if you are troubble shooting in the program it's self

or you can replace it with another sound clip, same difference ^_^

p.s. the song file is 2mins 27 seconds long





lul smiles :mrgreen:  :| 


[schild=16 fontcolor=C0C0C0 shadowcolor=C0C0C0 shieldshadow=1]HALP ME[/schild]

-----------------------------------
Insectoid
Tue Oct 28, 2008 10:57 am

RE:help with game
-----------------------------------
If you're on an older version of Turing, you need to make music a process, 


process playmusic
music.playFile ("song.wav")
end process


Then fork music when you need it to run. 

If you're on a newer version, you can use music.PlayFileLoop, and to end it, use playfilestop.

-----------------------------------
ecookman
Wed Oct 29, 2008 7:27 am

RE:help with game
-----------------------------------
what do you classify as a 'older version'


before 4.0 or 4.0 and lower or... lol srry

-----------------------------------
S_Grimm
Wed Oct 29, 2008 7:31 am

RE:help with game
-----------------------------------
4.1.1 is the newest version. it has a flaw in the header though. anything before 4.x is deemed old.

-----------------------------------
ecookman
Wed Oct 29, 2008 7:47 am

RE:help with game
-----------------------------------
hunh ok then thanks

-----------------------------------
isaiahk9
Wed Oct 29, 2008 6:56 pm

RE:help with game
-----------------------------------
ecookman, I've mentioned this before - make properly named threads - not "help with game".

-----------------------------------
Insectoid
Wed Oct 29, 2008 7:02 pm

RE:help with game
-----------------------------------
I believe 4.0.5 will not run playfileloop (). This was the version previous to 4.1, so, 4.1.x can playfileloop, 4.0.X and earlier won't.

-----------------------------------
ecookman
Thu Oct 30, 2008 7:17 am

Re: RE:help with game
-----------------------------------
ecookman, I've mentioned this before - make properly named threads - not "help with game".





yes sorry i didn't quite know what to put as the title



TITLE NOOBS FTW :mrgreen:

-----------------------------------
S_Grimm
Thu Oct 30, 2008 10:17 am

RE:help with game
-----------------------------------
put something like "Need to play music  in the background." It tells us that you are making a program with music and need it to be in the background.

-----------------------------------
ecookman
Thu Oct 30, 2008 10:30 pm

RE:help with game
-----------------------------------
lol ya
almost done the program i can't figure out how to halt the script (starting a ne topic called help haulting script (game almost done final step))

-----------------------------------
Insectoid
Fri Oct 31, 2008 12:46 pm

RE:help with game
-----------------------------------
Why don't you put that into this thread? If all your questions relate to the same program, put it in one topic.

-----------------------------------
ecookman
Mon Nov 03, 2008 8:18 am

RE:help with game
-----------------------------------
they don't relate to the same problem that is why i moved it >.>

-----------------------------------
petree08
Mon Nov 03, 2008 10:57 am

RE:help with game
-----------------------------------
but its  the same program

-----------------------------------
S_Grimm
Mon Nov 03, 2008 11:09 am

RE:help with game
-----------------------------------
petree is right. same program. same thread.
