Alright, I found the blockspec and code for the string reporter. Scriptable scratch morph.
blockspec:
('report %s' #r #report: 'hello')
code:
report: t1 ^ t1
Last edited by zorket (2010-09-12 17:15:42)
Offline
Thats a block? it just reports exactly what you put in!
Offline
zorket wrote:
johnnydean1 wrote:
Thats a block? it just reports exactly what you put in!
Yep! Pretty useless huh?
and, in fact, if you want a string to fit inside a numeric reporter you could use the join block instead
Offline
LS97 wrote:
zorket wrote:
johnnydean1 wrote:
Thats a block? it just reports exactly what you put in!
Yep! Pretty useless huh?
and, in fact, if you want a string to fit inside a numeric reporter you could use the join block instead
Or maby you can use a variable.
Offline
J0nas1 wrote:
could you make a 3D floor effect block?
example:
without effect:
http://img202.imageshack.us/img202/1735 … effect.png
with effect:
http://img299.imageshack.us/img299/5428 … effect.png
with effect and rotated:
http://img801.imageshack.us/img801/3801 … othera.png
Actually there are only 3 defferent effects, and you'rs is not in the menu. Sorry.
Offline
LS97 wrote:
PlayWithFire 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 youcan i haz?
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' 'minutes' 'seconds' 'hours' 'weekday')now replace the blockSpec you created with ('get %t' r getDate: 'time')
it should work
Thanks!
Offline
bbbeb wrote:
I personally think this is the second block forum that should get ITopic'd. But that's just me.
I agree. Back it up here.
Offline
I try to create a block but it won't let me save. If i don't save and then go to instance then it deletes what i have done.
Offline
subzerostig wrote:
I try to create a block but it won't let me save. If i don't save and then go to instance then it deletes what i have done.
you mean it wont let you click accept?
Offline
I click accept and it says: "nothing more expected" but then when i try to go to instance or anything else it says: "Changes have not been saved is it OK to cancel changes" If I click yes then I go to instance but i lose my work, If i click No i stay where i am.
Offline
subzerostig wrote:
I click accept and it says: "nothing more expected" but then when i try to go to instance or anything else it says: "Changes have not been saved is it OK to cancel changes" If I click yes then I go to instance but i lose my work, If i click No i stay where i am.
that means there's an error in your code. accepting works fine in itself.
try reviewing your code and fixing any syntax errors
Offline
Did you remember to put a dot at the end of the line? Or do you need to type 'self' before the command?
Offline
Thanks for helping but it still won't work!!! This is what i type in: ('showing?' #b #getHidden). and it won't work. This is for the Showing? Block on the first page of the forums. I type this in on the bottom(apart from the : t1, self obsoleteblockspecs) on the: Scratch Objects-ScriptableScratchMorph-Class-BlockSpecs-BlockSpecs.
Offline
You probably forgot a quote, aka '.
Offline
LS97 wrote:
ThePCKid wrote:
[removed]
i'll have said this for the 100000th time. my code is to get whether a sprite is SHOWING, not hiding. i know that's easier but it is more complicated for the user. you only make the squeak code once, but you use the block many more times.
I messed up again. Shoot.
Offline
subzerostig wrote:
Thanks for helping but it still won't work!!! This is what i type in: ('showing?' #b #getHidden). and it won't work. This is for the Showing? Block on the first page of the forums. I type this in on the bottom(apart from the : t1, self obsoleteblockspecs) on the: Scratch Objects-ScriptableScratchMorph-Class-BlockSpecs-BlockSpecs.
The period isnt neccesary.
Offline
bbbeb wrote:
subzerostig wrote:
Thanks for helping but it still won't work!!! This is what i type in: ('showing?' #b #getHidden). and it won't work. This is for the Showing? Block on the first page of the forums. I type this in on the bottom(apart from the : t1, self obsoleteblockspecs) on the: Scratch Objects-ScriptableScratchMorph-Class-BlockSpecs-BlockSpecs.
The period isnt neccesary.
ah, finally someone spotted the mistake. i wonder why nXIII didn't spot it though
Offline
LS97 wrote:
bbbeb wrote:
subzerostig wrote:
Thanks for helping but it still won't work!!! This is what i type in: ('showing?' #b #getHidden). and it won't work. This is for the Showing? Block on the first page of the forums. I type this in on the bottom(apart from the : t1, self obsoleteblockspecs) on the: Scratch Objects-ScriptableScratchMorph-Class-BlockSpecs-BlockSpecs.
The period isnt neccesary.
ah, finally someone spotted the mistake. i wonder why nXIII didn't spot it though
I considered it to be a full stop in the sentence with incorrect capitalization.
Offline
nXIII wrote:
LS97 wrote:
bbbeb wrote:
The period isnt neccesary.ah, finally someone spotted the mistake. i wonder why nXIII didn't spot it though
I considered it to be a full stop in the sentence with incorrect capitalization.
HAHAHA LOL
you really seem *¨*¨* sometimes...
Offline