Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 ...help playing a music file after another...[help]
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ecookman




PostPosted: Mon Nov 03, 2008 8:37 am   Post subject: ...help playing a music file after another...[help]

look for the comments at the begining it explains my problem
Crying or Very sad Wink Rolling Eyes Twisted Evil Evil or Very Mad


Turing:


%before this i was playing  Music.PlayFileLoop ("hyrule field.wav")
Music.PlayFileStop
%and wtf why is this not working is .wma not supported???????????
%_________HELP NEEDED HERE_____________
Music.PlayFile ("bossbattle.wma")
var playerhp, monsterhp : int
var playerattk, monsterattk : int
var playerdef: int
var onetwo : int
var monsterchoice: int

randint (playerhp,50,100)
randint (monsterhp,75,250)

loop
randint (playerattk,1,10)
randint (monsterattk,1,15)
randint (playerdef,1,15)
randint (monsterchoice,1,2)

delay(2000)

%player attack or defend
color (brightred)
cls
locate (10,1)
put "your hp is ",playerhp
locate (11,1)
put "the monster's hp is ",monsterhp


locate (3,1)
color (42)
put "press 1 to attack or press 2 to defend and use a health potion"
get onetwo
if onetwo = 1 then
    %player attacks
    color (88)
    put "you hit a ",playerattk
    monsterhp := monsterhp-playerattk
   
    %monster attacks or do nothing
        if monsterchoice = 1 then
            put "the monster attked and hit a ",monsterattk
            playerhp := playerhp-monsterattk
        end if
end if
color (44)
if onetwo = 2 then
    %player defends
    color (brightblue)
    put "your defend and gain ",playerdef, " hp"
    playerhp:=playerhp+playerdef
    %monster attacks- attack or do nothing
        if monsterchoice= 1 then
        put "the monster attked and hit a ",monsterattk
          playerhp := playerhp-monsterattk   
       
           
        end if
end if
if monsterhp<=0 then
cls
locate (13,30)
put "you win"
locate (13,1)
put "you rescue the kidnapped children and return to the village.The world is safe once      again"
Music.PlayFileStop 
exit
     
elsif playerhp<=0 then
cls
color (brightgreen)
locate (15,35)
put "GAME OVER"
locate (15,35)
put "GAME OVER"
put "You died. Znat conqured the world and killed everyone in your home village"
delay (1000)
delay (1000)
exit

elsif playerhp>100 then
color(52)
locate (15,1)
delay (2000)
put "Yor have drank to many health potions at once. You die from an overdose"
delay (2000)
locate (15,35)
cls
locate (15,35)
put "GAME OVER"
put "You died. Znat conqured the world and killed everyone in your home village"
cls

delay (1000)
exit
     

end if

end loop
Music.PlayFileStop








so the problem is right at the top...and i also gave you the rest of the game
Sponsor
Sponsor
Sponsor
sponsor
Warchamp7




PostPosted: Mon Nov 03, 2008 9:19 am   Post subject: RE:...help playing a music file after another...[help]

Taken right out of Turings documentation

Quote:
The file must be in one of the acceptable formats and the machine, must have the appropriate hardware.
The fileName parameter must give the format of the file:

WAV files "WAV:filename" or "filename.WAV"
MP3 files "MP3:filename" or "filename.MP3"
MIDI files "MIDI:filename" or "filename.MIDI"


So in short, no, wma files are not supported
S_Grimm




PostPosted: Mon Nov 03, 2008 11:16 am   Post subject: RE:...help playing a music file after another...[help]

use a converter and convert it to mp3. my current favourite is Super.
andrew.




PostPosted: Mon Nov 03, 2008 4:41 pm   Post subject: RE:...help playing a music file after another...[help]

If you have iTunes, you can convert it to MP3 by importing it into your library. Just make sure that before you import, you go to settings and make sure that the import it set to MP3 not AAC.
ecookman




PostPosted: Mon Nov 03, 2008 7:37 pm   Post subject: RE:...help playing a music file after another...[help]

thnaks a lot
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: