This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#126 2010-08-09 14:00:04

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

Sorry, guys. I'm not allowed to work on Blocktalk with people online!  sad

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.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#127 2010-08-09 14:03:08

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

LS97 wrote:

big_smile  yeah.
always ready to help you with codes and stuff  smile

Thanks!  lol

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)  hmm

Thanks for all of your guys' help!  smile

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  smile

Offline

 

#128 2010-08-09 14:27:47

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

LS97 wrote:

Jwosty wrote:

LS97 wrote:

big_smile  yeah.
always ready to help you with codes and stuff  smile

Thanks!  lol

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)  hmm

Thanks for all of your guys' help!  smile

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  smile

Aagghhh! My dad told me how to make a global variable, but I forgot!  mad


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#129 2010-08-09 14:33:02

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

LS97 wrote:

Jwosty wrote:


Thanks!  lol

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)  hmm

Thanks for all of your guys' help!  smile

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  smile

Aagghhh! My dad told me how to make a global variable, but I forgot!  mad

Ahhh... I dont know either... Squeak isn't my place, I just like to observe.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#130 2010-08-09 14:46:22

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

markyparky56 wrote:

Ahhh... I dont know either... Squeak isn't my place, I just like to observe.

tongue


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#131 2010-08-09 14:47:47

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

markyparky56 wrote:

Ahhh... I dont know either... Squeak isn't my place, I just like to observe.

tongue

I'm just nosey.
http://www.weirdspace.dk/RogerHargreaves/Graphics/MrNosey.gif


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#132 2010-08-09 14:52:01

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

markyparky56 wrote:

Jwosty wrote:

markyparky56 wrote:

Ahhh... I dont know either... Squeak isn't my place, I just like to observe.

tongue

I'm just nosey.
http://www.weirdspace.dk/RogerHargreaves/Graphics/MrNosey.gif

tongue

Last edited by Jwosty (2010-08-09 14:52:19)


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#133 2010-08-09 14:53:33

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

markyparky56 wrote:

Jwosty wrote:


tongue

I'm just nosey.
http://www.weirdspace.dk/RogerHargreave … rNosey.gif

tongue

Now, get learning how to make global variable! NOW! Don't make me get out the secret weapon!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#134 2010-08-09 14:54:05

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

markyparky56 wrote:

Now, get learning how to make global variable! NOW! Don't make me get out the secret weapon!

tongue

PS: You answer FAST!

Last edited by Jwosty (2010-08-09 14:54:45)


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#135 2010-08-09 14:58:25

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

markyparky56 wrote:

Now, get learning how to make global variable! NOW! Don't make me get out the secret weapon!

tongue

PS: You answer FAST!

I know... I do... 
Now to work!
(Last warning...)


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#136 2010-08-09 15:00:12

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

markyparky56 wrote:

I know... I do... 
Now to work!
(Last warning...)

It's not as easy as you think, you know.

That's why I'm going offlinetongue


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#137 2010-08-09 15:01:02

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Blocktalk

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


You can now reach me on Twitter @johnnydean1_

Offline

 

#138 2010-08-09 15:13:03

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

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...  hmm


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#139 2010-08-10 08:46:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Blocktalk

Do you know how and if so how?


You can now reach me on Twitter @johnnydean1_

Offline

 

#140 2010-08-10 08:59:04

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Blocktalk

ther's no way to declare it global in fact  smile
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

 

#141 2010-08-10 09:07:45

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Blocktalk

johnnydean1 wrote:

Do you know how and if so how?

Use a popular search engine to find out how.  wink


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#142 2010-08-10 09:42:21

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

LS97 wrote:

ther's no way to declare it global in fact  smile
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:

Code:

myInstanceVariable

^ myInstanceVariable

and

Code:

myInstanceVariable: aString

myInstanceVariable := aString

Duuhh!! I can't believe I forgot about that!  yikes


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#143 2010-08-10 10:33:15

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Blocktalk

yeah you could. but that's more useful for setting. the other one is pretty useless

Offline

 

#144 2010-08-10 10:36:53

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

LS97 wrote:

yeah you could. but that's more useful for setting. the other one is pretty useless

Wich one is useless?  hmm


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#145 2010-08-11 05:27:47

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Blocktalk

the myInstanceVariable
^ instanceVar

not really needed for instance. i think only class needs

Offline

 

#146 2010-08-11 09:25:07

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

LS97 wrote:

the myInstanceVariable
^ instanceVar

not really needed for instance. i think only class needs

Well, I would include that because you normally couldn't access the from outside the particular instance.


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#147 2010-08-11 09:32:54

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Blocktalk

no. true... but i don't use it. nor do i use the other one tbh

Offline

 

#148 2010-08-11 09:39:25

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

LS97 wrote:

no. true... but i don't use it. nor do i use the other one tbh

Well, there wouldn't be any other way to access it from some other instance of the same or different class. Wouldn't hurt to try!  wink


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#149 2010-08-12 10:33:44

JwTest
New Scratcher
Registered: 2010-08-11
Posts: 19

Re: Blocktalk

Bump!


big_smile   big_smile   big_smile  Ya gotta LOVE the smiles.  big_smile   big_smile   big_smile

Offline

 

#150 2010-08-13 03:38:01

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Offline

 

Board footer