Ok Will add when I get some time now im busy.
Offline
('scripts' #r #scripts) put this in blockspecs scriptablescratchmorph under sensing put in a block on the script place and click on this block it tells what block you have, the starting block only hat blocks will work
Last edited by electrified123 (2010-05-14 14:00:07)
check out my stuff ~ If You Really Thought i would think what you thought, than you must think i think what you thought i would think at the time you thought i was thinking what you thoughtOffline
i love the sound and camera blocks! but i wish you could elaborate on picture and sound part. like how to record sound or save a picture to a sprite. that could have all sorts of uses like catching photographic evidence of my nosy siblings
i tried for an hour to get it to work, but i could do it.
plez help somone!
Last edited by t-boy (2010-05-14 16:13:39)
Offline
Here's my code:
('Create Error' #- #doSomin)You don't make any instance code, this block is used to get an error code to edit squeak with. Just something to think about. (The only block I can make...)
Offline
EmperorEvil wrote:
Here's my code:
Code:
('Create Error' #- #doSomin)You don't make any instance code, this block is used to get an error code to edit squeak with. Just something to think about. (The only block I can make...)
But its much easier to do it the proper way (The dev way) Insted of creating and error...
Offline
t-boy wrote:
i love the sound and camera blocks! but i wish you could elaborate on picture and sound part. like how to record sound or save a picture to a sprite. that could have all sorts of uses like catching photographic evidence of my nosy siblings
i tried for an hour to get it to work, but i could do it.
plez help somone!
I've done that with Panther. It's light work to set up the webcam with movement detection, point it at the door and take photos when movement is detected. You should try it, I did it with my brother
www.pantherprogramming.weebly.com
Last edited by sparks (2010-06-11 09:17:28)
Offline
It always says: End of block expected. whatdo I do?
Offline
Name of block: Export Sprite
Thanks to: HD123
Block Code:
('export this sprite' #- #exportObject)
Other Notes:
This block will export a sprite.Last edited by HD123 (2010-07-26 20:23:50)
Offline
The code for "export stage" would be the same as the code for export sprite. (unless you want different wording) If you want it to say "export stage", just set the code to
('export stage' #- #exportObject)Last edited by HD123 (2010-07-26 20:19:33)
Offline
You should change the clone block. use the function cloneAndSend instead. It has to be with a %e parameter which means it broadcasts the message only to the clone straight after it's created. That is useful to make it do something after it's cloned. So the block code is ('clone me with message %e' #- #cloneAndSend). The cloneAndSend method is already created in scratch.
Offline
A slight modification of nXIII's block...
allKeysPressed
| t1 |
t1 _ ''.
self keyNames do: [:t2 |
(self keyPressed: t2) ifTrue: [t1 _ t1 , t2 , ',']].
^ t1Offline
TheSuccessor wrote:
A slight modification of nXIII's block...
Code:
allKeysPressed | t1 | t1 _ ''. self keyNames do: [:t2 | (self keyPressed: t2) ifTrue: [t1 _ t1 , t2 , ',']]. ^ t1
NEAT
Offline
TheSuccessor wrote:
A slight modification of nXIII's block...
Code:
allKeysPressed | t1 | t1 _ ''. self keyNames do: [:t2 | (self keyPressed: t2) ifTrue: [t1 _ t1 , t2 , ',']]. ^ t1
A slight modification of a slight modification of my block...
allKeysPressed
|l|l_ScratchListMorph new listName:''target:nil.self keyNames do:[:k|(self keyPressed: k)ifTrue:[l insertLine:k at:(l lineCount+1)]].^l
Look at all those bytes I saved! (it returns a list, too)
Last edited by nXIII (2010-09-06 12:07:35)
Offline
And if your mod doesn't support list reporters...
Offline
nXIII wrote:
TheSuccessor wrote:
And if your mod doesn't support list reporters...
Then too bad for you!
Everything always seems to be too bad for me. I wonder how I survive.
Offline