Computer Science Canada Another Button Problem :( |
Author: | Sam_sam [ Mon Jan 05, 2009 6:37 pm ] | ||
Post subject: | Another Button Problem :( | ||
Well, this time I got a lot futher. If you don't know what I am talking about you can refer to Post: How to make button help!?! Now, I am trying to enable my "customers" to be able to click on an image, and it has to activate in response by showing information on it. This is what my code looks like so far, don't mind the commented out ones. I really need help with the uncommented ones.
Ok. So in the code it show where the problem is. I made a button using "buttonwait" and I would really like to keep it at that. So you braniacs out there,... keep it simple ![]() it doesn't. So please tell me.. WHAT IS THE PROBLEM!!! ![]() |
Author: | syntax_error [ Mon Jan 05, 2009 6:49 pm ] |
Post subject: | RE:Another Button Problem :( |
(x < 15 and x > 214 and y < 181 and y > 349) how can x be less then 15 and greater then 214? same thing for y its less then 181 yet greater then 349? Trace through your code. It helps. |
Author: | Sam_sam [ Mon Jan 05, 2009 6:53 pm ] |
Post subject: | RE:Another Button Problem :( |
WOW! I now understand the meaning of computer science. Thank you sytax_error, you fixed my problemo! Gracias.. or however you spell it! |
Author: | Sam_sam [ Mon Jan 05, 2009 8:10 pm ] |
Post subject: | RE:Another Button Problem :( |
How can I import music like a mp3 file so that it plays? |
Author: | Laplace's Demon [ Mon Jan 05, 2009 8:14 pm ] |
Post subject: | Re: Another Button Problem :( |
Before you hit this forum try searching through the turing reference. It is an incredibly powerful tool. Just search "music" in turing reference. It can be done in one very simple and easy step. |
Author: | Sam_sam [ Mon Jan 05, 2009 8:36 pm ] |
Post subject: | RE:Another Button Problem :( |
I KNOW! ![]() |
Author: | Laplace's Demon [ Mon Jan 05, 2009 8:50 pm ] |
Post subject: | Re: Another Button Problem :( |
If the music file is in the same directory (folder) as your program then just use the file name (ie. "song.MP3"). However if the file is in a different folder than your program you must specify that. For example if the music is in a sub-folder within the folder your game is housed in called the "music" folder then you would reference the file by calling "music/song.MP3". |
Author: | andrew. [ Mon Jan 05, 2009 10:17 pm ] |
Post subject: | RE:Another Button Problem :( |
Use Music.PlayFile to play music. Like Laplace's Demon said, if the music file is in the same folder as your Turing file (.t) then just use Music.PlayFile ("song.mp3"). If you have the music somewhere else like in a folder in your Turing folder then use Music.PlayFile ("My Folder/song.mp3"). |