Hi Is there any way to get the chipmunk program to monitor the arrow keys on the keyboard? For instance, do I have to define the ASCII number and use that? ...
702
richard.paul98
May 13, 2009 6:50 am
Hi How do you change a sprite's image in the middle of a program? I would have thought you just put a new sprite down with the same id# as the first, and in...
703
jeffonymail
May 13, 2009 8:55 pm
... Hi, Richard. I guess you have to look for the ASCII number but you can predefine it as a string variable or as an integer variable if you want. Here is a...
704
jeffonymail
May 14, 2009 1:00 am
... Hi, Richard. I don't know much about sprites but I notice that you can have up to 63 sprites and so I wondered if each aspect of your tank could be a...
705
Richard Paul
richard.paul98
May 14, 2009 7:27 am
Hi Thanks very much, but after playing around for a while I worked out my problem. ... [Non-text portions of this message have been removed]...
706
richard.paul98
May 26, 2009 6:36 pm
Hi I have used variables for a long time, but now I am wondering: can a variable have letter as well as number input, (such as a variable could be "x27" or...
707
Justin T Fanning
fanning.justin
May 26, 2009 7:49 pm
$ basic Chipmunk BASIC v3.6.4(b7) ... 123 ... $ ... It would seem so :) Kind regards, Justin ... [Non-text portions of this message have been removed]...
708
Rob Keister
rskeister
May 27, 2009 2:14 am
I interpreted the question as whether the variable content (not it's name) could be a mix of letters and numbers. The answer is still "yes" but you have to...
709
Richard Paul
richard.paul98
May 29, 2009 4:10 pm
sorry, I actually meant the variable's data, and not the variable's name. For example: a position variable. position = x23 or position = y16 i cannot get this...
710
Richard Paul
richard.paul98
May 29, 2009 4:10 pm
thanks! I couldn't get it to work, but I hadn't tried string variable before. i will try that. ... [Non-text portions of this message have been removed]...
711
richard.paul98
Jun 1, 2009 3:26 pm
Hi Are the various commands in chipmunk basic exactly the same on windows as on an apple mac? For instance: I program with mac os x. If I downloaded chipmunk...
712
richard.paul98
Jun 1, 2009 3:26 pm
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@......