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

#901 2010-11-26 01:50:38

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

Sensing Blocks (will be updated)

Code:

 
ans = ""
//Ask and wait.
function ask_andWait(obj1) {
confirm(obj1) }
//Answer. (var ans is what it uses)
function answer {
return ans }

johnnydean1 wrote:

The ask block and other text inputs will call up a JavaScript prompt to enter text.

check!

Ans is put there for now, until I figure something else out.

Looks (i am struggling to find Sensing, so i do something else)

Code:

//Note: We need to make improvisations, at least for now.
function say_(obj1) {
window.prompt(obj1) }

Last edited by bbbeb (2010-11-26 02:08:48)


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#902 2010-11-26 01:55:13

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

We need to use jQuery for Glide script. All in favour, I.


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#903 2010-11-26 02:02:47

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

tcb wrote:

We need to use jQuery for Glide script. All in favour, I.

Er, um, I?

And will it work for some of the sensing ones?
Like MouseX and Touching []? (Maybe we can use HTML5 for Mouse things...)


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#904 2010-11-26 02:12:08

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

Ok Cool g2g!


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#905 2010-11-26 02:12:45

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

tcb wrote:

Ok Cool g2g!

Lol Same!


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#906 2010-11-26 07:27:26

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Lets make a new Scratch viewer!

I've been wanting to ask this for a while, its likely already been asked though.
Whats wrong with the current one?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#907 2010-11-26 10:40:24

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: Lets make a new Scratch viewer!

I will help.


http://blocks.scratchr.org/API.php?user=paulpsicle&action=onlineStatus&online=http://fishery.dyndns.org/paulpsicle.png&offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#908 2010-11-26 11:31:39

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

To include jQuery, we're going to have to put a <script src='jQuery.js'> code in our webpage, so please do that before you forget!

EDIT: Download jQuery from jquery.com

Last edited by tcb (2010-11-26 12:24:00)


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#909 2010-11-26 12:13:06

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

markyparky56 wrote:

I've been wanting to ask this for a while, its likely already been asked though.
Whats wrong with the current one?

Nothing, except try viewing it on the Wii, DS or your phone. It doesnt work see. This one should work!


You can now reach me on Twitter @johnnydean1_

Offline

 

#910 2010-11-26 12:47:15

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

Have started moving other peoples code into mine... With full credit, of course!

Tried to optimize and format everything I could, view it at scratch.fridgecow.com/block.js

Last edited by tcb (2010-11-26 12:47:45)


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#911 2010-11-26 12:52:29

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

markyparky56 wrote:

I've been wanting to ask this for a while, its likely already been asked though.
Whats wrong with the current one?

Nothing, except try viewing it on the Wii, DS or your phone. It doesnt work see. This one should work!

I don't have a Wii or a DS, with internet; or a phone to view it with! Thats what a computer is for, and a computer views it fine!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#912 2010-11-26 12:53:34

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

markyparky56 wrote:

johnnydean1 wrote:

markyparky56 wrote:

I've been wanting to ask this for a while, its likely already been asked though.
Whats wrong with the current one?

Nothing, except try viewing it on the Wii, DS or your phone. It doesnt work see. This one should work!

I don't have a Wii or a DS, with internet; or a phone to view it with! Thats what a computer is for, and a computer views it fine!

So for you, this will do nothing, for me and a few others this will equip their devices with Scratch.


You can now reach me on Twitter @johnnydean1_

Offline

 

#913 2010-11-26 14:01:59

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

markyparky56 wrote:

johnnydean1 wrote:

markyparky56 wrote:

I've been wanting to ask this for a while, its likely already been asked though.
Whats wrong with the current one?

Nothing, except try viewing it on the Wii, DS or your phone. It doesnt work see. This one should work!

I don't have a Wii or a DS, with internet; or a phone to view it with! Thats what a computer is for, and a computer views it fine!

It will help others.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#914 2010-11-26 14:32:38

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

markyparky56 wrote:

johnnydean1 wrote:

markyparky56 wrote:

I've been wanting to ask this for a while, its likely already been asked though.
Whats wrong with the current one?

Nothing, except try viewing it on the Wii, DS or your phone. It doesnt work see. This one should work!

I don't have a Wii or a DS, with internet; or a phone to view it with! Thats what a computer is for, and a computer views it fine!

The world isn't all about you. No offense.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#915 2010-11-27 03:25:46

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

markyparky56 wrote:

Thats what a computer is for, and a computer views it fine!

Are you joking? There has been a million times with me that the java player messes up my arrays, variables, sprites (eg. size can't be bigger than screen) and others.

With a viewer made by the people we can address those problems!


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#916 2010-11-27 04:10:54

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

Ok. scratch.fridgecow.com/block.js now has code from all of us:
I've optimized it abit and tried to make it compatible with the rest of my code, but I'm still not sure how we are meant to be formatting it?

I format it like bbbeb:

bbbeb wrote:

round_()

but without trailing underscores.

oh, and I put the element it came from in every function:

Code:

function round(element, value1, value2){
//code (See it at address stated above)
}

http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#917 2010-11-27 04:39:22

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

The ask block and other text inputs will call up a JavaScript prompt to enter text.

That's a bad idea as it will interrupt the execution of all other scripts.


/* No comment */

Offline

 

#918 2010-11-27 05:31:36

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Lets make a new Scratch viewer!

TheSuccessor wrote:

johnnydean1 wrote:

The ask block and other text inputs will call up a JavaScript prompt to enter text.

That's a bad idea as it will interrupt the execution of all other scripts.

Ok then have a toggle box that toggles a pop up keyboard.


You can now reach me on Twitter @johnnydean1_

Offline

 

#919 2010-11-27 06:49:45

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

TheSuccessor wrote:

johnnydean1 wrote:

The ask block and other text inputs will call up a JavaScript prompt to enter text.

That's a bad idea as it will interrupt the execution of all other scripts.

Ok then have a toggle box that toggles a pop up keyboard.

look here: http://www.scratchhtmlviewer.net23.net/keys.html
my keyboard I made!  big_smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#920 2010-11-27 06:59:40

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

TriTeam wrote:

johnnydean1 wrote:

How about we use a combination of:
HTML
PHP
J-Script
And others

To make a new Scratch viewer.

It would not use Flash, Squeak, Java or any others.

If we design it to scale to the screen then anything we view it on would be able to view Scratch projects.

If we made it using these we could view any project on a:
COMPUTER
And anything else with a web browser!


So can we make it?

Uh, dude? HTML5? Hello?

Umm, no sorry I am staying clear of HTML5 as Internet Explorer, DSi and Wii don't support it.

IE supports it...?

Offline

 

#921 2010-11-27 07:08:32

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Lets make a new Scratch viewer!

I don't have any need to view scratch projects on mobiles ect however I think this great because will be really quick, easy to mod and generally just amazing!  big_smile
PS: when we've finished this I'd like to mod it to put on mod share!  big_smile

Last edited by Daffy22 (2010-11-27 07:09:09)


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#922 2010-11-27 08:57:54

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: Lets make a new Scratch viewer!

Why not have a non-javascript  (perl) converter that converts the sb file to a javascript file that calls functions in a scratch library? It would be faster than having a script decode the sb on the fly.

Last edited by paulpsicle (2010-11-27 09:00:17)


http://blocks.scratchr.org/API.php?user=paulpsicle&amp;action=onlineStatus&amp;online=http://fishery.dyndns.org/paulpsicle.png&amp;offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#923 2010-11-27 10:21:56

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: Lets make a new Scratch viewer!

I thought the PHP decoded the file, set it to an input type="hidden" value, and the execution engine called the correct function at the correct time...


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#924 2010-11-27 10:51:07

paulpsicle
Scratcher
Registered: 2008-10-12
Posts: 100+

Re: Lets make a new Scratch viewer!

I think that's how it is now, but I'm saying having something (could be the PHP) decode it and convert it to javascript would probably be faster.


http://blocks.scratchr.org/API.php?user=paulpsicle&amp;action=onlineStatus&amp;online=http://fishery.dyndns.org/paulpsicle.png&amp;offline=http://fishery.dyndns.org/paulpsicle_o.png

Offline

 

#925 2010-11-27 14:08:53

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

I don't think jquery is needed. If we wanted to make an HTML element glide across a web page then yes, but we are working in a canvas so no. All in favor of not using jquery say I. [blocks]<say[ I ]>[/blocks]


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

Board footer