Computer Science Canada Need Help |
Author: | ImDaMan [ Mon Oct 09, 2006 6:30 pm ] | ||
Post subject: | Need Help | ||
Hey everyone, i started programming about a month ago so i'm pretty noobie. I'm currently programming a game right now and I want get Turing to play music while I play the game, how do I do that. oh yeah, one more thing, my plane keeps flickering even when I use View.Update, anyone got any ideas? ![]() As I have said before, i'm pretty noobie, so here are my codes, I bet there are simple ways to do some of these codes. ![]()
|
Author: | Clayton [ Mon Oct 09, 2006 6:37 pm ] |
Post subject: | |
ok, first of all, get rid of the randomize in there, you dont need it, it was used way back when in like 3.x versions of Turing (even before that i believe actually) and is no longer used. next, you only need one View.Update in there, the reason it is flashing is because you draw your picture, then clear the screen, then View.Update, so you see a clear screen for a second then you get the picture ![]() ![]() to get the music to play while everything else is happening use the Music.PlayFileReturn (filename:string) procedure (well process really...) and you should be fine ![]() |
Author: | Silent Avenger [ Mon Oct 09, 2006 6:39 pm ] |
Post subject: | |
Well first off you shouldn't post threads with subjects of "need help". Next time put in something you need help with in the subject so in your case you might put "need help with playing music and flickering". I've also found a tutorial on the haltsoft website for you, the link is below. http://www.holtsoft.com/turing/tech/music.html |
Author: | ImDaMan [ Mon Oct 09, 2006 6:41 pm ] |
Post subject: | ty |
Thanks ![]() btw: I know this probably sounds stupid but how do you actual use that command? (filename:string)?? ![]() |
Author: | ImDaMan [ Mon Oct 09, 2006 6:52 pm ] |
Post subject: | nvm that last message |
nvm, I found out how.... ![]() |
Author: | Silent Avenger [ Mon Oct 09, 2006 7:18 pm ] |
Post subject: | |
Well it's a good thing that you figured out how to do it yourself because that's how you really learn, by figuring things out by yourself and not having people telling you what to do. |
Author: | Cervantes [ Mon Oct 09, 2006 7:22 pm ] |
Post subject: | |
"Music.PlayFileReturn (filename:string)" means that the Music.PlayFileReturn procedure takes one parameter and that parameter is a string. It is referred to as "filename" in the definition of the procedure. You'll start to use this syntax when you start defining your own subroutines. |