Jwosty wrote:
Sorry, guys. I'm not allowed to work on Blocktalk with people online!
![]()
Such a pity, tell your Mum & Dad I say hi anyway! XD
My parents don't mind if I share files with other people, as long as I don't give away and very person information like last names and stuff.
Offline
Jwosty wrote:
LS97 wrote:
yeah.
always ready to help you with codes and stuff![]()
Thanks!
![]()
Oh, and speaking of that, how do you think we could define a second blocksBin? (I just want to get 2 scripting tabs working seperatley)![]()
Thanks for all of your guys' help!![]()
i was just trying to figure that out myself. you certainly have to add a variable to ScriptableScratch called whateveryouwantBin next to the exisitng 'blocksBin', but then i tried that it creates an error. try declaring it global if you get the same error too
Offline
LS97 wrote:
Jwosty wrote:
LS97 wrote:
yeah.
always ready to help you with codes and stuff![]()
Thanks!
![]()
Oh, and speaking of that, how do you think we could define a second blocksBin? (I just want to get 2 scripting tabs working seperatley)![]()
Thanks for all of your guys' help!![]()
i was just trying to figure that out myself. you certainly have to add a variable to ScriptableScratch called whateveryouwantBin next to the exisitng 'blocksBin', but then i tried that it creates an error. try declaring it global if you get the same error too
![]()
Aagghhh! My dad told me how to make a global variable, but I forgot!
Google it.
Offline
Jwosty wrote:
LS97 wrote:
Jwosty wrote:
Thanks!![]()
Oh, and speaking of that, how do you think we could define a second blocksBin? (I just want to get 2 scripting tabs working seperatley)![]()
Thanks for all of your guys' help!![]()
i was just trying to figure that out myself. you certainly have to add a variable to ScriptableScratch called whateveryouwantBin next to the exisitng 'blocksBin', but then i tried that it creates an error. try declaring it global if you get the same error too
![]()
Aagghhh! My dad told me how to make a global variable, but I forgot!
![]()
Ahhh... I dont know either... Squeak isn't my place, I just like to observe.
Offline
Jwosty wrote:
markyparky56 wrote:
Ahhh... I dont know either... Squeak isn't my place, I just like to observe.
![]()
I'm just nosey.
Offline
Jwosty wrote:
markyparky56 wrote:
Jwosty wrote:
![]()
I'm just nosey.
http://www.weirdspace.dk/RogerHargreave … rNosey.gif
![]()
Now, get learning how to make global variable! NOW! Don't make me get out the secret weapon!
Offline
Jwosty wrote:
markyparky56 wrote:
Now, get learning how to make global variable! NOW! Don't make me get out the secret weapon!
![]()
PS: You answer FAST!
I know... I do...
Now to work!
(Last warning...)
Offline
In squeak I think I know.
Goto
Scratch-Objects
And you see something like:
Object subclass: #NameOfClass
instanceVariableNames: 'instVarName1 instVarName2'
classVariableNames: 'ClassVarName1 ClassVarName2'
poolDictionaries: ''
category: 'Scratch-Objects'
.
They are your globals I think
Offline
johnnydean1 wrote:
In squeak I think I know.
Goto
Scratch-Objects
And you see something like:Object subclass: #NameOfClass
instanceVariableNames: 'instVarName1 instVarName2'
classVariableNames: 'ClassVarName1 ClassVarName2'
poolDictionaries: ''
category: 'Scratch-Objects'.
They are your globals I think
Thanks, but those are the class and instance variables...
Google it.
Offline
ther's no way to declare it global in fact
in the code, if you refer to that variable, if it doesnt know what it is it asks you to declare globa. just click on that
Offline
johnnydean1 wrote:
Do you know how and if so how?
Use a popular search engine to find out how.
Offline
LS97 wrote:
ther's no way to declare it global in fact
![]()
in the code, if you refer to that variable, if it doesnt know what it is it asks you to declare globa. just click on that
Oh, yea! That's it!
h wait, I just realized I could define a method like this:
myInstanceVariable ^ myInstanceVariable
and
myInstanceVariable: aString myInstanceVariable := aString
Duuhh!! I can't believe I forgot about that!
Google it.
Offline
yeah you could. but that's more useful for setting. the other one is pretty useless
Offline
the myInstanceVariable
^ instanceVar
not really needed for instance. i think only class needs
Offline
no. true... but i don't use it. nor do i use the other one tbh
Offline
why bump, jwosty?
Offline