Sensing Blocks (will be updated)
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)
//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)
Offline
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...)
Offline
I've been wanting to ask this for a while, its likely already been asked though.
Whats wrong with the current one?
Offline
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)
Offline
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!
Offline
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)
Offline
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!
Offline
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.
Offline
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.
Offline
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.
Offline
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!
Offline
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:
function round(element, value1, value2){
//code (See it at address stated above)
}Offline
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.
Offline
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.
Offline
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!
Offline
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
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!
PS: when we've finished this I'd like to mod it to put on mod share!
Last edited by Daffy22 (2010-11-27 07:09:09)
Offline
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)
Offline
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.
Offline
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]
Offline