a
| block |
block type. No it doesnt have to go in a colour slot.
Offline
What do you mean by "block type" do you mean like command, boolean, reporter? Or do you mean like control, motion, looks? Or do you mean something else?
Offline
command reporter boolean
60
s
e
c
o
n
d
s
!
!
!
!
!
R
u
l
e
!
!
!
!
Offline
Make a CommandBlockMorph subclass and some changes to ScriptableScratchMorph's blocks methods. Change the drawing method to make it a different shape (I was thinking a W-shaped jagged edge might look cool)
Out of curiosity, what are you doing with this new block type?
Last edited by nXIII (2010-08-12 15:39:15)
Offline
Its like a label. It will act like a reporter but will not fit in anything else.
Offline
Oh can you add more deatai to your guide.
Offline
nXIII wrote:
Make a CommandBlockMorph subclass and some changes to ScriptableScratchMorph's blocks methods. Change the drawing method to make it a different shape (I was thinking a W-shaped jagged edge might look cool)
Out of curiosity, what are you doing with this new block type?
How do you tell it what letter to be?
ex: command is -, reporter is r, Boolean is b.
Offline
for that you need to the blockFromSpec:color: method under 'blocks' in ScriptableScratchMorph
Offline
LS97 wrote:
for that you need to the blockFromSpec:color: method under 'blocks' in ScriptableScratchMorph
That was the last thing that I needed to know before posting 1.0. Thank you.
Offline
you're welcome
Offline
I don't get this. I added a block type, but whenever I make a block spec with that type as the block, I get an error. Could someone explain this in more detail?<wait(60)secsc>
Offline
scratcher7_13 wrote:
I don't get this. I added a block type, but whenever I make a block spec with that type as the block, I get an error. Could someone explain this in more detail?<wait(60)secsc>
Error what?
Offline
WIlliam7777 wrote:
scratcher7_13 wrote:
I don't get this. I added a block type, but whenever I make a block spec with that type as the block, I get an error. Could someone explain this in more detail?<wait(60)secsc>
Error what?
Please look at the date something was posted before replying to it.
Offline