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

#26 2012-06-05 10:44:41

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Javascript topic

slinger wrote:

alldaykade28471 wrote:

Does anyone know a free website hoting company that uses javascript?

Just use dropbox for testing and stuff  tongue

Just use a local file.

SciTecCf wrote:

Platformer in JS.

Did you make that?  yikes

JavaScript discussions should take place here.

Offline

 

#27 2012-06-05 11:54:44

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Javascript topic

scimonster wrote:

slinger wrote:

alldaykade28471 wrote:

Does anyone know a free website hoting company that uses javascript?

Just use dropbox for testing and stuff  tongue

Just use a local file.

JavaScript discussions should take place here.

Even better
and
totally.


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#28 2012-06-05 11:55:54

Crystlemoon24
New Scratcher
Registered: 2012-05-24
Posts: 54

Re: Javascript topic

Ya

Offline

 

#29 2012-06-05 13:19:18

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Javascript topic

Is that you being moderator or is that you suggesting us to a forum dedicated to discussions about Programming Languages? I'd prefer to keep it in MaC because I don't want to join twenty forums for each thing I would like to discuss and it's following the forum guidelines because in the description of MaC it says you can discuss other programming languages.

Offline

 

#30 2012-06-05 13:43:03

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Javascript topic

TorbyFork234 wrote:

Is that you being moderator or is that you suggesting us to a forum dedicated to discussions about Programming Languages? I'd prefer to keep it in MaC because I don't want to join twenty forums for each thing I would like to discuss and it's following the forum guidelines because in the description of MaC it says you can discuss other programming languages.

It's just a suggestion which by the way I agree with  tongue

Last edited by slinger (2012-06-05 13:43:21)


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#31 2012-06-05 13:45:39

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Javascript topic

slinger wrote:

TorbyFork234 wrote:

Is that you being moderator or is that you suggesting us to a forum dedicated to discussions about Programming Languages? I'd prefer to keep it in MaC because I don't want to join twenty forums for each thing I would like to discuss and it's following the forum guidelines because in the description of MaC it says you can discuss other programming languages.

It's just a suggestion which by the way I agree with  tongue

I would like to point out the description under the url for MaC in the forums index.

The Scratch Forums Index wrote:

Discuss things you are creating or exploring outside of Scratch, like art, music, programming languages, or crafts.

Last edited by TorbyFork234 (2012-06-05 13:45:58)

Offline

 

#32 2012-06-05 13:50:01

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Javascript topic

scimonster wrote:

SciTecCf wrote:

Platformer in JS.

Did you make that?  yikes

No, I did not.  smile


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#33 2012-06-05 15:04:43

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Javascript topic

TorbyFork234 wrote:

slinger wrote:

TorbyFork234 wrote:


Is that you being moderator or is that you suggesting us to a forum dedicated to discussions about Programming Languages? I'd prefer to keep it in MaC because I don't want to join twenty forums for each thing I would like to discuss and it's following the forum guidelines because in the description of MaC it says you can discuss other programming languages.

It's just a suggestion which by the way I agree with  tongue

I would like to point out the description under the url for MaC in the forums index.

The Scratch Forums Index wrote:

Discuss things you are creating or exploring outside of Scratch, like art, music, programming languages, or crafts.

I know. Just trying to push Coders' Shed.  tongue

Offline

 

#34 2012-06-05 17:22:28

shpeters
Scratcher
Registered: 2011-12-11
Posts: 100+

Re: Javascript topic

Does anyone know about a website that teaches javascript and a way to use it?


http://i.imgur.com/bboYO.pnghttp://i.imgur.com/66Yki.gifhttp://i.imgur.com/uLUsl.jpg

Offline

 

#35 2012-06-05 17:31:37

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: Javascript topic

shpeters wrote:

Does anyone know about a website that teaches javascript and a way to use it?

I've heard good things about Code Academysmile

Offline

 

#36 2012-06-05 18:33:58

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Javascript topic

silvershine wrote:

shpeters wrote:

Does anyone know about a website that teaches javascript and a way to use it?

I've heard good things about Code Academysmile

Yeah, that's mostly where I learned the stuff I know (not much lol) from. And Coders' Shed. :3


Why

Offline

 

#37 2012-06-07 01:06:48

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Javascript topic

bump

Offline

 

#38 2012-06-07 04:41:52

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Javascript topic

Does anyone know how to calculate the distance between the mouse and an element in JavaScript?


http://trinary.tk/images/signature_.php

Offline

 

#39 2012-06-07 07:16:24

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javascript topic

TorbyFork234 wrote:

SciTecCf wrote:

I suck at JS. I can only write short scriplets such as "onClick".  sad

Still, thanks to your madlib, I now know what innerHTML does.  smile

It is exactly what it says it is. The HTML that's supposed to be there.

What I think is pretty awesome is that some guys created games, raycasters, simulations, in javascript. Here's the raycaster.

Anyone else use javascript?

I do ^_^ but hopefully you already know that  big_smile  lol

and btw that is a very very basic example of raycaster  tongue  .. try doing that with webgl even smaller code  big_smile   tongue


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#40 2012-06-07 07:19:12

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javascript topic

trinary wrote:

Does anyone know how to calculate the distance between the mouse and an element in JavaScript?

There are many ways .. if you are doing that onclick and the position of the element is always going to remain constant then you can do

Code:

   var ele = document.getElementById('elem_da_refer');
   ele.addEventListener('mousedown',function(e){
      var dx = ele.offsetLeft - e.clientX,
            dy = ele.offsetTop - e.clientY,
            /* Now do the distance formula*/
            distance = Math.sqrt( dx*dx + dy*dy);
           /* Do the magic with distance */
   });

well the function is going to remain constant.


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#41 2012-06-07 07:22:09

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javascript topic

silvershine wrote:

shpeters wrote:

Does anyone know about a website that teaches javascript and a way to use it?

I've heard good things about Code Academysmile

Dont go else where when there is the awesome mozilla documentation :-D , and you can always ask here or on stackoverflow .

Also in the stackoverflow developer room we talk about javascript that is a great resource for learning .


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#42 2012-06-07 07:24:22

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javascript topic

scimonster wrote:

TorbyFork234 wrote:

slinger wrote:


It's just a suggestion which by the way I agree with  tongue

I would like to point out the description under the url for MaC in the forums index.

The Scratch Forums Index wrote:

Discuss things you are creating or exploring outside of Scratch, like art, music, programming languages, or crafts.

I know. Just trying to push Coders' Shed.  tongue

Why ? .. I dont get coders' shed concept when there exists stackoverflow with a very vivid flavour or programmers and about a 100,000 pros over there? and not just pros but experienced pros


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#43 2012-06-07 07:30:36

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javascript topic

jji7skyline wrote:

alldaykade28471 wrote:

Does anyone know a free website hoting company that uses javascript?

All webhosting companies have javascript enabled.

Try 1freehosting.

Excuse me but you dont need to host javascript for testing you can run the file by double clicking it [ asssuming ur code is in a .html or linked init]

and also if he means node.js hosting then try no.de its pure server side javascript hosting.

Oh and btw you can test js on your pc and put it on jsfiddle ;-) the best ;-)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#44 2012-06-07 07:35:31

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javascript topic

veggieman001 wrote:

jji7skyline wrote:

SciTecCf wrote:

Cool! Can't wait to try it!

I hope it's fast.

And iOS devices would be able to play it too! That would be awesome!  big_smile

Even android phones  smile

Another HTML5 player that's being made makes it so I can actually play Rhy's projects.

if they keep on using canvas that dream will be met in 2017 lol but if they move on to stuff like DOM it would be 100x faster


Its so simple when you render on canvas you do stuff like this

Canvas
code -> JS/C++ bridge -> Runs native code -> JS/C++ Bridge -> Output
// Canvas functions actually mostly occur inside C++ but because of the API they need to be parsed into a C++ executable form i found that out when i was reading v8's source code for a node.js extension

DOM
Code->Native Code->Output

This is actually faster because these functions are actually written natively and occur 10x faster .

http://paulbakaus.com/2010/07/19/why-canvas-is-not-an-obvious-choice-for-web-games/

Read above ^_^

and that message is not for you veggie rather to everybody who is going canvas way .

Oh btw veggie did you checked out google blocky ? its a google hosted code that is like aclone of scratch but allows native compiling to js

Last edited by fanofcena (2012-06-07 07:37:21)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#45 2012-06-07 09:38:02

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Javascript topic

I've made some stuff with JavaScript. One of my most in-depth projects was a cannon game using canvas. I also made a calender program using DOM.

Last edited by scmb1 (2012-06-07 09:39:42)


http://i48.tinypic.com/2z5pqad.png

Offline

 

#46 2012-06-07 10:03:15

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Javascript topic

fanofcena wrote:

jji7skyline wrote:

alldaykade28471 wrote:

Does anyone know a free website hoting company that uses javascript?

All webhosting companies have javascript enabled.

Try 1freehosting.

Excuse me but you dont need to host javascript for testing you can run the file by double clicking it [ asssuming ur code is in a .html or linked init]

He specifically asked for a web host though, not how to run it

fanofcena wrote:

scimonster wrote:

TorbyFork234 wrote:

slinger wrote:

It's just a suggestion which by the way I agree with  tongue

I would like to point out the description under the url for MaC in the forums index.

The Scratch Forums Index wrote:

Discuss things you are creating or exploring outside of Scratch, like art, music, programming languages, or crafts.

I know. Just trying to push Coders' Shed.  tongue

Why ? .. I dont get coders' shed concept when there exists stackoverflow with a very vivid flavour or programmers and about a 100,000 pros over there? and not just pros but experienced pros

StackOverflow can sometimes be difficult to understand and doesn't have the fluidity and cohesiveness that Coders' Shed can have. It's also a smallish community, which makes it nice.

fanofcena wrote:

veggieman001 wrote:

jji7skyline wrote:


I hope it's fast.

And iOS devices would be able to play it too! That would be awesome!  big_smile

Even android phones  smile

Another HTML5 player that's being made makes it so I can actually play Rhy's projects.

[message]
and that message is not for you veggie rather to everybody who is going canvas way .

Oh btw veggie did you checked out google blocky ? its a google hosted code that is like aclone of scratch but allows native compiling to js

The player I mentioned is very far along and has a large amount of blocks working, as well as being fast.

And I did see that, but it wasn't all too interesting.


Posts: 20000 - Show all posts

Offline

 

#47 2012-06-07 10:06:30

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Javascript topic

fanofcena wrote:

silvershine wrote:

shpeters wrote:

Does anyone know about a website that teaches javascript and a way to use it?

I've heard good things about Code Academysmile

Dont go else where when there is the awesome mozilla documentation :-D , and you can always ask here or on stackoverflow .

Also in the stackoverflow developer room we talk about javascript that is a great resource for learning .

Or on Coders' Shed.

fanofcena wrote:

scimonster wrote:

TorbyFork234 wrote:

slinger wrote:

It's just a suggestion which by the way I agree with  tongue

I would like to point out the description under the url for MaC in the forums index.

I know. Just trying to push Coders' Shed.  tongue

Why ? .. I dont get coders' shed concept when there exists stackoverflow with a very vivid flavour or programmers and about a 100,000 pros over there? and not just pros but experienced pros

Competition.  tongue
We're just doing our own thing. We plan to have other features, too.

Offline

 

#48 2012-06-07 10:22:55

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Javascript topic

scimonster wrote:

fanofcena wrote:

silvershine wrote:

shpeters wrote:

Does anyone know about a website that teaches javascript and a way to use it?

I've heard good things about Code Academysmile

Dont go else where when there is the awesome mozilla documentation :-D , and you can always ask here or on stackoverflow .

Also in the stackoverflow developer room we talk about javascript that is a great resource for learning .

Or on Coders' Shed.

fanofcena wrote:

scimonster wrote:


I know. Just trying to push Coders' Shed.  tongue

Why ? .. I dont get coders' shed concept when there exists stackoverflow with a very vivid flavour or programmers and about a 100,000 pros over there? and not just pros but experienced pros

Competition.  tongue
We're just doing our own thing. We plan to have other features, too.

Are you trying to say you wanna compete with SO ? and btw i promote SO as the upper and high experienced developers sitting there will help you  tongue 


and by the way to all those for whom SO gets hard to understand you can ask the answering person in comment , can you please explain in brief ..


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#49 2012-06-07 10:26:46

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Javascript topic

I believe Coders' Shed will also allow users to share their programs &c.


Posts: 20000 - Show all posts

Offline

 

#50 2012-06-07 15:02:50

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Javascript topic

fanofcena wrote:

scimonster wrote:

TorbyFork234 wrote:

slinger wrote:

It's just a suggestion which by the way I agree with  tongue

I would like to point out the description under the url for MaC in the forums index.

I know. Just trying to push Coders' Shed.  tongue

Why ? .. I dont get coders' shed concept when there exists stackoverflow with a very vivid flavour or programmers and about a 100,000 pros over there? and not just pros but experienced pros

Let's just say I had no idea (Until quite a while into development) that Stackoverflow exists. It's also nice to have different sites out there to ask questions on.


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

Board footer