This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-08-15 20:34:07

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

I'll help develop when i can (on iPad now)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#27 2011-08-15 21:15:27

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

gbear605 wrote:

I'll help develop when i can (on iPad now)

Great!! Could you please start working on the penDown codes and the penUp and clear functions? I'll put you in the box


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#28 2011-08-16 01:34:42

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

GP1 wrote:

it doesn't work at the moment, I'll try to fix this

never mind everybody. I forgot to call a couple functions in the file.


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#29 2011-08-16 07:13:17

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

Oh, k. What should I do?

Offline

 

#30 2011-08-16 13:02:24

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

Could you post the html of a page with it working, so I can see that.  I'm kinda a noob at javascript  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#31 2011-08-16 13:23:53

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

gbear605 wrote:

Could you post the html of a page with it working, so I can see that.  I'm kinda a noob at javascript  tongue

lol  tongue

Offline

 

#32 2011-08-16 17:09:41

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

gbear605 wrote:

Could you post the html of a page with it working, so I can see that.  I'm kinda a noob at javascript  tongue

I'm working on it. I have to debug it first to see if there are any errors. I debugged some of it last night on my iPod and there are alot of errors.


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#33 2011-08-16 17:11:11

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

ProgrammingFreak wrote:

Oh, k. What should I do?

Could you please try to see if js can play sounds and make the code and post it here? That would be great!


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#34 2011-08-16 17:14:37

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

GP1 wrote:

ProgrammingFreak wrote:

Oh, k. What should I do?

Could you please try to see if js can play sounds and make the code and post it here? That would be great!

You said that already, didn't you?  tongue

Offline

 

#35 2011-08-16 17:18:53

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

The actual code

Code:

function playSound(file){
    document.NAME.play(false, file);
}

Put this in body.

Code:

<embed="YOUR SOUND FILE" autostart="false" hidden="true" name="NAME" MASTERSOUND>

Last edited by ProgrammingFreak (2011-08-16 17:19:24)

Offline

 

#36 2011-08-16 17:23:08

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

ProgrammingFreak wrote:

The actual code

Code:

function playSound(file){
    document.NAME.play(false, file);
}

Put this in body.

Code:

<embed="YOUR SOUND FILE" autostart="false" hidden="true" name="NAME" MASTERSOUND>

Thanks!! Could you next make the pen catagorie? I haven't done it yet.Or you could make some of the non supported motion functions be supported. One of the two.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#37 2011-08-18 08:02:51

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: scratch_blox.js — the ultimate JavaScript library

I don't understand. What do I do? I put the code into a blank HTML doc, but when I opened it I just got a blank screen.


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

#38 2011-08-18 14:00:38

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

whizzer wrote:

I don't understand. What do I do? I put the code into a blank HTML doc, but when I opened it I just got a blank screen.

me know, me know. There is an error in the code and it wont run. I'm trying to fix it as fast as I can.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#39 2011-08-18 23:09:45

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

HEY EVERYBODY!!
I know that it is already out, but I'm going to take it down and start over. This will ensure that it works. Thank you for your time.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#40 2011-08-21 07:14:28

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

GP1, If you mind, I would suggest using the canvas for everything. You're not (I didn't look yet, but I'm pretty sure), and you won't be able to things like graphics effects and pen. I could help you there if you wanted.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#41 2011-08-21 15:56:57

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

bobbybee wrote:

GP1, If you mind, I would suggest using the canvas for everything. You're not (I didn't look yet, but I'm pretty sure), and you won't be able to things like graphics effects and pen. I could help you there if you wanted.

I'm considering that. Could you give me an example of a picture of a  cat moving across a canvas? That would be great!


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#42 2011-08-23 08:12:03

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

It's not that hard. I won't give code but rather instructions:

Create a canvas a get set it's id.
Access the canvas using a var in javascript.
Get the 2d context from it.
Make a timer that goes off every frame.
On the timer draw the background on the canvas.
Draw the cat in x and y stored in variables.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#43 2011-08-25 22:24:02

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

bobbybee wrote:

It's not that hard. I won't give code but rather instructions:

Create a canvas a get set it's id.
Access the canvas using a var in javascript.
Get the 2d context from it.
Make a timer that goes off every frame.
On the timer draw the background on the canvas.
Draw the cat in x and y stored in variables.

thanks, I'll try that. I was thinking of using canvas because I don't have to use jquery and it will be easier to make the pendown and penup functions. I have to download that one javascript library that makes canvas work for IE6 and IE7.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#44 2011-08-25 22:38:11

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: scratch_blox.js — the ultimate JavaScript library

I will test! You may want to check this out http://scratch.mit.edu/forums/viewtopic.php?id=72698! I am actually working on a similar thing, except that I am actually making a whole new language, and not just calling functions  tongue


Fork Clamor on GitHub!

Offline

 

#45 2011-08-26 17:37:15

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

Thats neat, anyway, GP1, tell me if you need any help with getting my useless tutorial to have a use.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#46 2011-08-26 17:40:34

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

bobbybee wrote:

Thats neat, anyway, GP1, tell me if you need any help with getting my useless tutorial to have a use.

useless? not at all! even if I can't get it to work, I'll have a better idea of how canvas works.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#47 2011-08-26 17:42:20

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: scratch_blox.js — the ultimate JavaScript library

ohaiderstudios wrote:

I will test! You may want to check this out http://scratch.mit.edu/forums/viewtopic.php?id=72698! I am actually working on a similar thing, except that I am actually making a whole new language, and not just calling functions  tongue

actually, we're working on a framework, but its the same thing, right?
Anyway, I'll put you in the box.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

Board footer