I'm creating a jquery script for the palettes. here is what I have so far. you need two pics of each palettes. one when it is up (ex. control.gif) and one when it is clicked (controlPressed.gif). anyway, here it is:
$(document).ready(function(){ $('#control').click(function(){ $('#motion').attr({src: 'motion.gif'}); $('#looks').attr({src: 'looks.gif'}); $('#sound').attr({src: 'sound.gif'}); $('#pen').attr({src: 'pen.gif'}); $('#sensing').attr({src: 'sensing.gif'}); $('#operators').attr({src: 'operators.gif'}); $('#variables').attr({src: 'variables.gif'}); $('#control').attr({src: 'controlPressed.gif'}); }); $('#motion').click(function(){ $('#motion').attr({src: 'motionPressed.gif'}); $('#looks').attr({src: 'looks.gif'}); $('#sound').attr({src: 'sound.gif'}); $('#pen').attr({src: 'pen.gif'}); $('#sensing').attr({src: 'sensing.gif'}); $('#operators').attr({src: 'operators.gif'}); $('#variables').attr({src: 'variables.gif'}); $('#control').attr({src: 'control.gif'}); }); $('#looks').click(function(){ $('#motion').attr({src: 'motion.gif'}); $('#looks').attr({src: 'looksPressed.gif'}); $('#sound').attr({src: 'sound.gif'}); $('#pen').attr({src: 'pen.gif'}); $('#sensing').attr({src: 'sensing.gif'}); $('#operators').attr({src: 'operators.gif'}); $('#variables').attr({src: 'variables.gif'}); $('#control').attr({src: 'control.gif'}); }); $('#sound').click(function(){ $('#motion').attr({src: 'motion.gif'}); $('#looks').attr({src: 'looks.gif'}); $('#sound').attr({src: 'soundPressed.gif'}); $('#pen').attr({src: 'pen.gif'}); $('#sensing').attr({src: 'sensing.gif'}); $('#operators').attr({src: 'operators.gif'}); $('#variables').attr({src: 'variables.gif'}); $('#control').attr({src: 'control.gif'}); }); $('#pen').click(function(){ $('#motion').attr({src: 'motion.gif'}); $('#looks').attr({src: 'looks.gif'}); $('#sound').attr({src: 'sound.gif'}); $('#pen').attr({src: 'penPressed.gif'}); $('#sensing').attr({src: 'sensing.gif'}); $('#operators').attr({src: 'operators.gif'}); $('#variables').attr({src: 'variables.gif'}); $('#control').attr({src: 'control.gif'}); }); $('#sensing').click(function(){ $('#motion').attr({src: 'motion.gif'}); $('#looks').attr({src: 'looks.gif'}); $('#sound').attr({src: 'sound.gif'}); $('#pen').attr({src: 'pen.gif'}); $('#sensing').attr({src: 'sensingPressed.gif'}); $('#operators').attr({src: 'operators.gif'}); $('#variables').attr({src: 'variables.gif'}); $('#control').attr({src: 'control.gif'}); }); $('#operators').click(function(){ $('#motion').attr({src: 'motion.gif'}); $('#looks').attr({src: 'looks.gif'}); $('#sound').attr({src: 'sound.gif'}); $('#pen').attr({src: 'pen.gif'}); $('#sensing').attr({src: 'sensing.gif'}); $('#operators').attr({src: 'operatorsPressed.gif'}); $('#variables').attr({src: 'variables.gif'}); $('#control').attr({src: 'control.gif'}); }); $('#variables').click(function(){ $('#motion').attr({src: 'motion.gif'}); $('#looks').attr({src: 'looks.gif'}); $('#sound').attr({src: 'sound.gif'}); $('#pen').attr({src: 'pen.gif'}); $('#sensing').attr({src: 'sensing.gif'}); $('#operators').attr({src: 'operators.gif'}); $('#variables').attr({src: 'variablesPressed.gif'}); $('#control').attr({src: 'control.gif'}); }); });
also, in the body, you need:
<div> <img src="motion.gif" id="motion"><img src="control.gif" id="control"><br /> <img src="looks.gif" id="looks"><img src="sensing.gif" id="sensing"><br /> <img src="sound.gif" id="sound"><img src="operators.gif" id="operators"><br /> <img src="pen.gif" id="pen"><img src="variables.gif" id="variables"><br /> </div>
Just remember to have jquery in the web page. You can also look here. there is probably (and there is) a better way to do this.
Offline
I tried test it on the ds but it wouldnt work, do I need to compile the files or something?
This is what I did:
But i did not compile it.
Last edited by dav09 (2011-07-04 08:02:29)
Offline
dav09 wrote:
I tried test it on the ds but it wouldnt work, do I need to compile the files or something?
This is what I did:
http://img683.imageshack.us/img683/1949/78482114.png
But i did not compile it.
Go Chrome!
------------------------
You're not supposed to download it to your SD card, you're supposed to view it on the browser!
Offline
jslomba wrote:
TornFusion wrote:
jslomba wrote:
really? I didn't think the DS lite had internet!me too. IT DOESNT.
Wait
Did u copy the app on to ur ds?let's just let him test it.
Offline
dav09 wrote:
I tried test it on the ds but it wouldnt work, do I need to compile the files or something?
This is what I did:
But i did not compile it.
look on the ds download page for kitcat again. I found a compiled nds file. I found out that you need to compile it to make it work. try the directions again. it will work this time.
Last edited by GP1 (2011-07-04 15:20:15)
Offline
whizzer wrote:
dav09 wrote:
I tried test it on the ds but it wouldnt work, do I need to compile the files or something?
This is what I did:
But i did not compile it.Go Chrome!
------------------------
You're not supposed to download it to your SD card, you're supposed to view it on the browser!
he means the kitcat mod's nitendo ds capability
Last edited by GP1 (2011-07-04 15:20:32)
Offline
Ok. Sorry, couldn't do any graphics.
Anway, when I get and SDCard (broke my other) I'll try it.
Offline
whizzer wrote:
jslomba wrote:
TornFusion wrote:
really? I didn't think the DS lite had internet!
me too. IT DOESNT.
Wait
Did u copy the app on to ur ds?let's just let him test it.
Ill take a picture to prove it if you want. you have to buy the game to get it to work
edit: this is it(not my image)
If your not doing scratch the browser way on ds then theres no point of me testing(unless you need more ds testers)
With the ds version: sorry If I sound dumb but it says can not load squeak.image when I load the ds version.
Last edited by dav09 (2011-07-05 07:29:48)
Offline
Hahaha cool stuff here..
Offline
whizzer wrote:
dav09 wrote:
I tried test it on the ds but it wouldnt work, do I need to compile the files or something?
This is what I did:
http://img683.imageshack.us/img683/1949/78482114.png
But i did not compile it.Go Chrome!
------------------------
You're not supposed to download it to your SD card, you're supposed to view it on the browser!
Go Chrome +1!
Offline
First of all, Regular DS has no internet. Other than that could I test on DSi?
Offline
dav09 wrote:
whizzer wrote:
jslomba wrote:
me too. IT DOESNT.
Wait
Did u copy the app on to ur ds?let's just let him test it.
Ill take a picture to prove it if you want. you have to buy the game to get it to work
edit: this is it(not my image)
http://stevelitchfield.com/dslite/opera0.jpg
If your not doing scratch the browser way on ds then theres no point of me testing(unless you need more ds testers)
With the ds version: sorry If I sound dumb but it says can not load squeak.image when I load the ds version.
oooooohhhhhhh. Could you try it one more try, but with the image renamed? I'll post a download link to it in a sec here.
EDIT: Here you go! please try it. if you do and when the new site is up, if you register then I'll give you 9,999,999,999 kitcat points or to be a developer if you want. I just really want the ds version to work. Thanks!
Last edited by GP1 (2011-07-05 12:01:08)
Offline
haven't you seen the first page?? we are still on device detection! I really have no idea, when you can just use elseif instead of switch. I made the show/hide blocks and i am working on the move()steps block. I guessing it will take a long time. hey, do you know javascript and jquery? the more programmers we get, the faster it will go
Offline
jslomba wrote:
GP1 wrote:
jslomba wrote:
how's the iPhone version coming along?
we are working on all the versions together at one time.
okay. is there a currently stable version I can test?
BTW, I'll try to make a little version for you, though it willl only have two blocks and you can't stack them together to make a script, but when you click the green flag, then they both will activate at the same time (that's what I think, I might be able to pull off one or two blocks more and stack them )
Offline
GP1 wrote:
EDIT: Here you go! please try it. if you do and when the new site is up, if you register then I'll give you 9,999,999,999 kitcat points or to be a developer if you want. I just really want the ds version to work. Thanks!
I tried it again, good and bad news
Good news: The error is gone
Bad news: New error Insufficient memory for this image. That could be a problem with my ds if its talking about memory ram on the ds. If its talking about memory as in free space I dont know what the problem is because I have 70mb or free space on my ds. However id i do need to delete games off my ds then i will
P.s: I dont really mind testing this, in fact im quite happy because i dont have much to do lately.
Last edited by dav09 (2011-07-05 13:17:34)
Offline
hey, at least it works (kinda, just a couple more bugs). I think that I agree with you. I googled it, and it said on the ds site that if the error popped up that said "Insufficient memory" then you don't have enough ram/rom (enough space to run it and enough space to make other files :p ). the image takes a HUGE hunk of memory! (like, 500mb on my computer ) also, how big is your micro sd card? it might not hold the whole thing but, maybe it will if you really want to, then you can delete some of your games. it will probably work. thanks for testing. if you do get it to work, and you don't enjoy it, then you can rename the scratch image and use it instead, but kitcat has more blocks
Last edited by GP1 (2011-07-05 13:42:40)
Offline
Offline
I think I have another micro sd in my house thats not used and has noting on it so if i find it ill use it. My micro sd now only has 2 gb so If i find an empty one that i dont use ill test it on that one.
Offline