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

Username:   Password: 
 RegisterRegister   
 game almost done final touches need to be applyed
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
ecookman




PostPosted: Sat Nov 01, 2008 11:57 am   Post subject: game almost done final touches need to be applyed

O.K. i am almost done!!!! (yes the game sucks but so what i like it personal best)



so i am wondering what is wrong with this last bit instead of posting the whole lond thing here is a 'snippet'
it is at the place where i made a simle boss battle... it WILL NOT play the new file even the old one stoppes...

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






THANKS FOR ALL OF YOUR TIME AND PATIENTS
Sponsor
Sponsor
Sponsor
sponsor
josh_65665




PostPosted: Fri Nov 07, 2008 9:00 am   Post subject: Re: game almost done final touches need to be applyed

Turing only supports mp3 midi and wav files.
ecookman




PostPosted: Fri Nov 07, 2008 9:14 am   Post subject: RE:game almost done final touches need to be applyed

yes thank you lol i figuered that out through painful hours of file conversion
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  [ 3 Posts ]
Jump to:   


Style:  
Search: