johnnydean1 wrote:
me450 wrote:
[request]
write [] to line () of file []
its like the write to file blocks but it writes to a certain line
also a create file []you should check around. I made both of these already!
werent they for Panther though
Offline
How do you save a certain section?
Offline
me450 wrote:
johnnydean1 wrote:
me450 wrote:
[request]
write [] to line () of file []
its like the write to file blocks but it writes to a certain line
also a create file []you should check around. I made both of these already!
werent they for Panther though
Panther to Scratch is easy to covert. I'm not explaining it but im sure LS97 or Sparks would!
Offline
johnnydean1 wrote:
me450 wrote:
johnnydean1 wrote:
you should check around. I made both of these already!werent they for Panther though
Panther to Scratch is easy to covert. I'm not explaining it but im sure LS97 or Sparks would!
ive tried just changing the $string$ to %s and the $number$ to %n but i get errors when using them
Offline
Bobsterman wrote:
How could you add more keys to
<key[ ]pressed?>
?
I just got an ascii code translate thingy on google, but how do you edit it?
Offline
ScriptableScratchMorph asciiFor:
ScriptableScratchMorph keyNames
Offline
11-16-01 wrote:
the sprite name block is made like this:
go to scriptablescratchmorph go to the control section then put this:
('sprite name' #r #name)
go to instance on the screen that pops up put this:
name
^ self objname
actually you need to capitalize the N in objName so it would be
name ^ self objName
Offline
legomany3448 wrote:
I just got an ascii code translate thingy on google, but how do you edit it?
go to http://scratch.mit.edu/projects/Pecola1/1429431 for a tutorial I made for that block.
Offline
johnnydean1 wrote:
me450 wrote:
johnnydean1 wrote:
you should check around. I made both of these already!werent they for Panther though
Panther to Scratch is easy to covert. I'm not explaining it but im sure LS97 or Sparks would!
all of them work except for <file exists?>
Offline
TheSuccessor wrote:
ScriptableScratchMorph asciiFor:
ScriptableScratchMorph keyNames
http://scratch.mit.edu/projects/Pecola1/1429431 that is if you want ASCII code. It is a tutorial for YOU
Last edited by Pecola1 (2010-11-24 09:08:14)
Offline
http://scratch.mit.edu/projects/Pecola1/1429431 this is a tutorial so you can add ASCII CODE!
Offline
How do I make the "looks 'blur'" effect?
Offline
So I was wondering... Where do you learn the code to code these blocks? I would really like to learn.
Offline
coupdegrace wrote:
So I was wondering... Where do you learn the code to code these blocks? I would really like to learn.
i simply looked around at the existing blocks' code and took some stuff from it
Offline
LS97 wrote:
coupdegrace wrote:
So I was wondering... Where do you learn the code to code these blocks? I would really like to learn.
i simply looked around at the existing blocks' code and took some stuff from it
thank you, that's what i did too. But can you create a method, and if so, how?
Offline
coupdegrace wrote:
So I was wondering... Where do you learn the code to code these blocks? I would really like to learn.
A tutorial to the language Scratch is written in (Squeak) can be found here.
Last edited by gbear605 (2010-11-27 12:47:16)
Offline
cheesycat501 wrote:
How do I make the "looks 'blur'" effect?
go to ScriptableScratchMorph, then looks ops. Go to graphic effects names and add somewhere in the parentheses
'blur'
if you put it in the right place, it should work automatically. You can also do this for 'pointillize' and 'saturation'.
Offline
Can you make a block that basically says:
"when sprite# is clicked" but is a boolean(diamond)?
-------
So far I got the code for blockspecs
('when %m clicked' #b)
...but I can;t figure the method or which opps it belongs to.
Offline
i can, on request, post tutorials for the blocks "go forward ( ) layers", "add variable [ ]", "create list [ ]", and "repeat while < >"
go on, request away
Offline
coupdegrace wrote:
i can, on request, post tutorials for the blocks "go forward ( ) layers", "add variable [ ]", "create list [ ]", and "repeat while < >"
go on, request away
reaaaally....
1. just edit the code in go back () layers to change from -1 to 1
2. addVariable:
3. addList: i think cant remember
4. the code's already there (in the scratchProcess)
Offline
360mta wrote:
Can you make a block that basically says:
"when sprite# is clicked" but is a boolean(diamond)?
-------
So far I got the code for blockspecsCode:
('when %m clicked' #b)...but I can;t figure the method or which opps it belongs to.
you cant really do that as the clicking raises an event and is not meant for boolean receivers. it's a bit like trying to nail something down with a mouse.
the best i can give you is the combination of these blocks:
[blocks]
<< <mouse down?> <and> <touching[ mouse >>
[/blocks]
Offline
360mta wrote:
Can you make a block that basically says:
"when sprite# is clicked" but is a boolean(diamond)?
-------
So far I got the code for blockspecsCode:
('when %m clicked' #b)...but I can;t figure the method or which opps it belongs to.
I can't help with the code, as I am not an expert in coding.
However your block code is wrong
Replaceit with this:
('%m clicked?' #b #othersprite:)
Only problem is that it has a checkbox next to it and you can select the mousepointer.
But I don't know why or how to stop that
Last edited by subzerostig (2010-11-29 14:55:48)
Offline
How does the When GreenFLag Clicked show the green flag?
Offline
LS97 wrote:
2. addVariable:
3. addList: i think cant remember
actually, those don't really work. It's a bit more complex. And gimme a break! I'm JUST starting to edit blocks!
Offline
ProgrammingFreak wrote:
How does the When GreenFLag Clicked show the green flag?
the block has a special drawing method. if you're really interested for that particular block, try looking in Scratch-Blocks StartEventHatMorph.
generally, blocks like the
[blocks]<turn cw( )degrees>[/blocks]
use the method in
Scratch-Blocks -> CommandBlockMorph -> addCommandIcons
hope that helped
Last edited by LS97 (2010-11-30 11:59:47)
Offline