Author |
Message |
ecookman

|
Posted: Tue Oct 28, 2008 10:47 am Post subject: 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
 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Insectoid

|
Posted: Tue Oct 28, 2008 10:57 am Post subject: RE:help with game |
|
|
If you're on an older version of Turing, you need to make music a process,
code: |
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

|
Posted: Wed Oct 29, 2008 7:27 am Post subject: 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

|
Posted: Wed Oct 29, 2008 7:31 am Post subject: 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

|
Posted: Wed Oct 29, 2008 7:47 am Post subject: RE:help with game |
|
|
hunh ok then thanks |
|
|
|
|
 |
isaiahk9

|
Posted: Wed Oct 29, 2008 6:56 pm Post subject: RE:help with game |
|
|
ecookman, I've mentioned this before - make properly named threads - not "help with game". |
|
|
|
|
 |
Insectoid

|
Posted: Wed Oct 29, 2008 7:02 pm Post subject: 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

|
Posted: Thu Oct 30, 2008 7:17 am Post subject: Re: RE:help with game |
|
|
isaiahk9 @ Wed Oct 29, 2008 6:56 pm wrote: 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  |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
S_Grimm

|
Posted: Thu Oct 30, 2008 10:17 am Post subject: 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

|
Posted: Thu Oct 30, 2008 10:30 pm Post subject: 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

|
Posted: Fri Oct 31, 2008 12:46 pm Post subject: 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

|
Posted: Mon Nov 03, 2008 8:18 am Post subject: RE:help with game |
|
|
they don't relate to the same problem that is why i moved it >.> |
|
|
|
|
 |
petree08
|
Posted: Mon Nov 03, 2008 10:57 am Post subject: RE:help with game |
|
|
but its the same program |
|
|
|
|
 |
S_Grimm

|
Posted: Mon Nov 03, 2008 11:09 am Post subject: RE:help with game |
|
|
petree is right. same program. same thread. |
|
|
|
|
 |
|