Hi I can put pict files into the graphics window like this: graphics pict 0,0,"mypicture.pict" however, if I try to put it at other x,y locations besides 0,0,...
713
richard.paul98
Jun 1, 2009 3:26 pm
Hi Is there any way at all that I can use sound files in my program? (I know that I can generate a tone, setting the duration and frequency.) Can I use game...
714
Justin T Fanning
fanning.justin
Jun 1, 2009 3:48 pm
About the only thing I have come across in moving apps between OSX & Win XP is if you are reading / writing to disk. The path structure changes I.E. OSX:...
715
jeffonymail
Jun 2, 2009 4:22 pm
... I tried it and got the same results. Since x and y are valid parameters in the command, it looks like a bug. ....Jeff Chipmunk BASIC 3.6.4(b8); OSX 10.5.7...
716
Rob Keister
rskeister
Jun 3, 2009 12:46 am
works OK for me. just have to make sure the pict file is in the same folder as the CB program or the complete path to the file is spelled out. rob Chipmunk...
717
Richard Paul
richard.paul98
Jun 3, 2009 10:31 pm
Ok, I seem to have a little problem with my sprites on windows xp ... [Non-text portions of this message have been removed]...
718
Michel Clasquin-Johnson
clasqm
Jun 3, 2009 10:48 pm
... That depends on your platform. On Mac OSX this works fine: sub Play(filename$,dothis$) dothis$="afplay " + filename$ +" &" sys(dothis$) end sub OSX has the...
719
Richard Paul
richard.paul98
Jun 3, 2009 11:39 pm
I have Chipmunk Basic v3.6.4(b7) I do make sure the picture is in the same folder as my program: It works fine when picture placement x,y is 0,0 but not any...
720
Richard Paul
richard.paul98
Jun 4, 2009 5:34 pm
I tried this program: 10 sub play(sound$,dothis$) 20 dothis$ = "afplay "+sound$+" &" 30 sys(dothis$) 40 end sub 50 gosub 10 This program was saved in a folder...
721
Richard Paul
richard.paul98
Jun 4, 2009 5:34 pm
I am using Mac OSX This looks like exactly what I want! Does the file have to be any specific format? Thanks a lot! ... [Non-text portions of this message have...
722
Richard Paul
richard.paul98
Jun 4, 2009 5:35 pm
Nope. Still doesn't work I am using 0SX 10.5.6 ... [Non-text portions of this message have been removed]...
723
jeffonymail
Jun 5, 2009 1:41 pm
... Hi, Richard. I tried the following and it worked: filename$="/Users/jeff/Desktop/Allofme.MP3" gosub Play(filename$) end sub Play(filename$,dothis$) ...
724
jeffonymail
Jun 5, 2009 1:56 pm
A follow-up note. I found that if I had spaces in the file path to the sound file then it no longer worked. The fix was to enclose the file path in single...
725
Richard Paul
richard.paul98
Jun 6, 2009 7:43 pm
I have it working fine now! sound file has to be decompressed type (wav, aiff, etc) Thanks for your help ... [Non-text portions of this message have been...
726
Michel Clasquin-Johnson
clasqm
Jun 6, 2009 7:43 pm
OK, OK, OK first of all sound$ is here the name of a variable. Presumably the file you want to play is sound.mp3 Sorry, I don't use line numbers. CB allows...
727
richard.paul98
Jun 14, 2009 6:50 pm
Hi Is there any way to save 100 or so lines of code as a text file, and make your program call it up? For example: If you make a computer game with 10 by 10...
728
Michel Clasquin-Johnson
clasqm
Jun 14, 2009 6:50 pm
I tested it with an mp3 and it worked OK for me, but wav is the one thing any computer out there will play. ... Michel Clasquin-Johnson e-mail:...
729
richard.paul98
Jun 14, 2009 6:50 pm
You can now do sprites directly from jpg files. put the jpg in the same folder as your saved program, and use this code: sprite 0,1,"mypic.jpg",50,350,128 ...
730
Michel Clasquin-Johnson
clasqm
Jun 14, 2009 6:50 pm
Correct. Or you can "escape" the spaces with backslashes sys("afplay /Users/jeff/Desktop/All92; of\ me.MP3") ... Michel Clasquin-Johnson e-mail: clasqm@......
731
richard.paul98
Jun 14, 2009 6:50 pm
Hi When saving a program, you would save as "my program.bas". If you name it "my program.app", it launches its own application. However, it creates a mac os9...
732
claus.mueller
Jun 14, 2009 6:51 pm
Dear Members, i wonder if i can access the mac-terminal via chipmunk, something like 100 send 'ls' to terminal output to \desktop92;info.txt would mean : execute...
733
Jim DeVona
jd_anoved
Jun 14, 2009 10:43 pm
Yes, try the sys() function. For example: 100 sys("ls /directory/to/list > /path/to/info.txt") Note that the sys() function returns the exit status of the...
734
claus.mueller
Jun 16, 2009 5:46 pm
... great. I hope you answer to me in the future. You are a great helper!!!...
735
Michel Clasquin-Johnson
clasqm
Jun 16, 2009 5:46 pm
No need to involve Terminal. The sys and the related system$ commands will let you run just about any command you will find listed in /usr/ bin, with pipes,...
736
claus.mueller
Jun 17, 2009 5:15 pm
hji, thx for letting me ask question after question... how do i relaunch an application from CB? the specific problem is to show hidden files in FINDER. To do...
737
claus.mueller
Jun 17, 2009 5:15 pm
Dear Members, you have been a great help! For example i learned that 100 sys("ls / > ~/desktop/test.txt") writes the files (even the hidden ones) that are in...
738
claus.mueller
Jun 17, 2009 5:15 pm
hi, if different users use the mac - i.e. /users/user1 , /users/user2 etc. how do i obtain a list of them in chipmunk? ideal would be something like 100 write...
739
claus.mueller
Jun 17, 2009 5:16 pm
hi, another one...how does chipmunk recognize hardware attched to the computer? for instance, printer,scanner,harddrive,external dvd-drive...? cheers p.s. i...
740
Jim DeVona
jd_anoved
Jun 17, 2009 5:23 pm
... Hi, Claus. External volumes are listed in the /Volumes directory. So, to get a listing of the volume you describe, try this: 100 sys("ls /Volumes/My92; Book...
741
Michel Clasquin-Johnson
clasqm
Jun 18, 2009 6:21 am
sys("users > ~/Desktop/users.txt") to know more, open a Terminal and type man users ... Michel Clasquin-Johnson e-mail: clasqm@... website:...