Computer Science Canada Working on my game... fairly new to Turing... music help > |
Author: | Grogrog [ Fri Nov 19, 2004 8:53 pm ] | ||
Post subject: | Working on my game... fairly new to Turing... music help > | ||
Well, I am a grade 10 student in computer science this year, and I have found it very fun so far. I am way ahead of most of my class, there are two others who are very good too. Right now I am working on a platformer - arena two player battle game. It's I guess sorta like that old Mario vs. game where you had to get 5 coins before the other player did. Anyways, right now I am working on my title screen and it's going pretty well. I have the other part of the code in a seperate file and I am gonna merge them later. Anyways, I don't know how to get the music to play. I don't know how to select the directory, or where the music should be. It's a midi file I want to put into my title screen. And for those who are interested here is my title screen so far:
I might be biting off more then I can chew but I plan on making this program through out the entire year until it is completely perfected. Please don't laugh if anything seems weird, or different, considering I made this in a day, and learned some new things while doing it. |
Author: | Delos [ Fri Nov 19, 2004 9:07 pm ] |
Post subject: | |
Music.PlayFile () Press F10. It's the API, you'll enjoy it. Good luck. |
Author: | Grogrog [ Fri Nov 19, 2004 10:45 pm ] | ||
Post subject: | |||
Uh. That doesn't do anything for me. I need real help. And I know about the help file. Like I've said I've tried stuff. Edit: Awsome. I sorta figured out how to get it to work. Well, I always knew how... but I just don't know how to point the directory to where the music file is. And how would I make it so that if somebody downloaded my game they could hear the music... Right now it looks like this: (I edited the example file in Turing help)
|
Author: | Mr. Glib [ Sat Nov 20, 2004 4:42 pm ] |
Post subject: | |
Try keeping your source codes and music files in the same directory. |
Author: | Delos [ Sun Nov 21, 2004 12:18 am ] |
Post subject: | |
Also, if you're running 4.0.5 then look up the following commands: Music.PlayFileLoop() Music.PlayFileReturn() Music.PlayFileStop() |