Here are some blocks that could use some coding: (layer) (number of pen marks) ([color effect] of [sprite1]) [delete this script] [turn around] [Play movie clip from page {} from x: {} y: {} to x: {} y: {}] [error script]
Offline
zorket wrote:
Here are some blocks that could use some coding:
(layer) Bingo has it, although it only works in 1.3.0 TBR soon
(number of pen marks) Some mod has it, i've tried to find unsuccessfully
([color effect] of [sprite1]) is definitely possible, but takes up space in menu
[delete this script] what's its use?
[turn around] do you men mirror or just change heading by 180?
[Play movie clip from page {} from x: {} y: {} to x: {} y: {}] nah...
[error script]wow - how useful - you can make your own better personalized too.
Offline
LS97 wrote:
zorket wrote:
Here are some blocks that could use some coding:
(layer) Bingo has it, although it only works in 1.3.0 TBR soon
(number of pen marks) Some mod has it, i've tried to find unsuccessfully The new claw has it
([color effect] of [sprite1]) is definitely possible, but takes up space in menu
[delete this script] what's its use?
[turn around] do you men mirror or just change heading by 180?
[Play movie clip from page {} from x: {} y: {} to x: {} y: {}] nah...
[error script]wow - how useful - you can make your own better personalized too.
Offline
LS97 wrote:
zorket wrote:
Here are some blocks that could use some coding:
(layer) Bingo has it, although it only works in 1.3.0 TBR soon
(number of pen marks) Some mod has it, i've tried to find unsuccessfully
([color effect] of [sprite1]) is definitely possible, but takes up space in menu
[delete this script] what's its use?
[turn around] do you men mirror or just change heading by 180?
[Play movie clip from page {} from x: {} y: {} to x: {} y: {}] nah...
[error script]wow - how useful - you can make your own better personalized too.
You HATE my ideas? How EVIL!
Offline
zorket wrote:
LS97 wrote:
zorket wrote:
Here are some blocks that could use some coding:
(layer) Bingo has it, although it only works in 1.3.0 TBR soon
(number of pen marks) Some mod has it, i've tried to find unsuccessfully
([color effect] of [sprite1]) is definitely possible, but takes up space in menu
[delete this script] what's its use?
[turn around] do you men mirror or just change heading by 180?
[Play movie clip from page {} from x: {} y: {} to x: {} y: {}] nah...
[error script]wow - how useful - you can make your own better personalized too.You HATE my ideas? How EVIL!
no, i don't hate them. i just don't think they're all useful. i might be wrong, so feel free to argue against this
Offline
LS97 wrote:
zorket wrote:
LS97 wrote:
You HATE my ideas? How EVIL!
no, i don't hate them. i just don't think they're all useful. i might be wrong, so feel free to argue against this
. I guess you 42% like my ideas, but i'm not
sharing my blocks anymore here.
Last edited by zorket (2010-09-28 16:52:08)
Offline
zorket wrote:
Here are some blocks that could use some coding: ([color effect] of [sprite1])
ScratchSpriteMorph and ScratchStageMorph:
attributeNames: add what you want.
getAttribute: it's obvious what needs doing.
Offline
me450 wrote:
could someone make a exit presentation mode one
and a clone block that works in pres mode
and also a Broadcast [] to sprite []
THANKS
i can make the first one -- ScratchFrameMorph new exitPresentatonMode
it probably won't work anyway
Offline
How can I make all blocks work in pres. mode
Offline
Which ones don't?
Offline
TheSuccessor wrote:
Which ones don't?
Well.. clone blocks
exit presentation mode
Offline
Oh and I have made a block, but when I check the reporter its says 'Sprite 1 ...'
How do I remove the Sprite 1 bit?
Offline
Isnt it
isSpriteSpecificTarget: t1 selector: t2
Last edited by johnnydean1 (2010-09-30 15:51:29)
Offline
LS97 wrote:
The 'Get time/date' block
http://www.freeimagehosting.net/uploads/209a5b329a.gif
Here we go!
The get time/date block reports the time, date, hour, etc. without the user having to insert it manually.
Copy this line of code into a space between two blocks in the 'control' section of blockSpecs in ScriptableScratchMorph.Code:
('get %s' #r #getTime: 'date')Then go to the instance section, then to 'other ops' and replace the code of broadcast: with the following
Code:
getTime: t1 t1 = 'date' ifTrue: [^ Date today]. t1 = 'short date' ifTrue: [^ Date today printFormat: #(1 2 3 $- 2 2 )]. t1 = 'time' ifTrue: [^ Time now]. t1 = 'seconds' ifTrue: [^ Time now seconds]. t1 = 'minutes' ifTrue: [^ Time now minutes]. t1 = 'hours' ifTrue: [^ Time now hours]. t1 = 'day' ifTrue: [^ Date today weekday]. t1 = 'help' ifTrue: [^ 'type date, short date, time, seconds, minutes, day, hours']. ^ 'Error!'then right-click and click accept. type your initials and you're ready to use the new block!
NOTE:
There's a second, more advanced version of the block, with a drop-down menu instead of a string inserter, but it involves extra coding. If you are willing to take the challenge, post and i'll edit this tutorial for you
im fine with extra advanced tutorial as it would produce less errors
please post
Thanks (:
Offline
NOTE:
There's a second, more advanced version of the block, with a drop-down menu instead of a string inserter, but it involves extra coding. If you are willing to take the challenge, post and i'll edit this tutorial for you
im fine with extra advanced tutorial as it would produce less errors
please post
Thanks (:
I've copied his way exactly. here it is:
ok. note that this is for the source code. if you are using normal scratch replace the 'code' with 't1'
into Scratch-Blocks > CommandBlockMorph > all > uncoloredArgMorphFor:
add a line that looks like this:
$t = code ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #timeDates].
back in ScriptableScratchMorph, create a new method with this code:
timeDates
^ #('time' 'date' 'short date' 'seconds' 'minutes' 'seconds' 'hours' 'weekday')
now replace the blockSpec you created with ('get %t' r getDate: 'time')
Replace the code with:
getTime: t1 t1 = 'date' ifTrue: [^ Date today]. t1 = 'short date' ifTrue: [^ Date today printFormat: #(1 2 3 $- 2 2 )]. t1 = 'time' ifTrue: [^ Time now]. t1 = 'seconds' ifTrue: [^ Time now seconds]. t1 = 'minutes' ifTrue: [^ Time now minutes]. t1 = 'hours' ifTrue: [^ Time now hours]. t1 = 'weekday' ifTrue: [^ Date today weekday]. ^ Error!
___________________________________________
I've edited the tutorial a little. LYSD didn't post the tutorial correctly.
Last edited by zorket (2010-10-01 07:43:32)
Offline
zorket wrote:
NOTE:
There's a second, more advanced version of the block, with a drop-down menu instead of a string inserter, but it involves extra coding. If you are willing to take the challenge, post and i'll edit this tutorial for youim fine with extra advanced tutorial as it would produce less errors
please post
Thanks (:I've copied his way exactly. here it is:
ok. note that this is for the source code. if you are using normal scratch replace the 'code' with 't2'
into Scratch-Blocks > CommandBlockMorph > all > uncoloredArgMorphFor:
add a line that looks like this:
$t = code ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #timeDates].
back in ScriptableScratchMorph, create a new method with this code:timeDates
^ #('time' 'date' 'short date' 'seconds' 'minutes' 'seconds' 'hours' 'weekday')now replace the blockSpec you created with ('get %t' r getDate: 'time')
Replace the code with:Code:
getTime: t1 t1 = 'date' ifTrue: [^ Date today]. t1 = 'short date' ifTrue: [^ Date today printFormat: #(1 2 3 $- 2 2 )]. t1 = 'time' ifTrue: [^ Time now]. t1 = 'seconds' ifTrue: [^ Time now seconds]. t1 = 'minutes' ifTrue: [^ Time now minutes]. t1 = 'hours' ifTrue: [^ Time now hours]. t1 = 'weekday' ifTrue: [^ Date today weekday]. ^ 'Error!'___________________________________________
I've edited the tutorial a little. LYSD didn't post the tutorial correctly.
thanks
ive edited it a bit to make it work on normal scratch
and also it says error when i use the block
thanks
Last edited by me450 (2010-10-02 04:27:13)
Offline
i was looking through panther blocks and was trying to get the file ones onto scratch
but they dont work so could someone plz help
ive converted the $String$ to %s and the number one 2
they say error though
thnaks
Offline