How do I create a new variable/method? After right-clicking, there doesn't seem to be anything that says "create new variable" etc.
EDIT: I mean in the System Browser. I'm trying to make your stage panning block
Last edited by nextstorm (2011-04-25 00:54:37)
Offline
ProgrammingFreak wrote:
Pecola1 wrote:
ProgrammingFreak wrote:
Also, can you make variables anywhere?What do you mean make variables anywhere? You mean the watcher allowed off the stage? (yes) Or make a new variable for a certain sprite from another sprite? (yes again) Do you mean make it so the user can make their variable go to motion, control et cetera? (yeperoo) What do you mean?
Like making variables in between the '||' anywhere? Or is that just at the top?
I believe they can go anywhere, but why would you want them anywhere else? For it to look better? but you do have to put the |'s.
Offline
nextstorm wrote:
How do I create a new variable/method? After right-clicking, there doesn't seem to be anything that says "create new variable" etc.
EDIT: I mean in the System Browser. I'm trying to make your stage panning block![]()
to create a new method, simply put your method in instance (for a scratch block) by clicking the instance button. Put it in any of the ops, if you cannot chose, use 'other ops'. Click on any method under your op, and backspace the WHOLE method (in the big box at the bottom), don't worry as long as you remember to backspace the whole thing it will not ruin the method. Now type/paste your method in the blank. For a variable INSIDE of a method (like BYOB's script variable) at the top of the page put two up and down lines: || (if you have a keyboard which does not contain them like mine, copy them) put the name of your variable in-between the lines. if you want more than one variable press space and make another name.
Offline
Pecola1 wrote:
ProgrammingFreak wrote:
Pecola1 wrote:
What do you mean make variables anywhere? You mean the watcher allowed off the stage? (yes) Or make a new variable for a certain sprite from another sprite? (yes again) Do you mean make it so the user can make their variable go to motion, control et cetera? (yeperoo) What do you mean?Like making variables in between the '||' anywhere? Or is that just at the top?
I believe they can go anywhere, but why would you want them anywhere else? For it to look better? but you do have to put the |'s.
I don't know. I was lazy.
Offline
ProgrammingFreak wrote:
Pecola1 wrote:
ProgrammingFreak wrote:
Like making variables in between the '||' anywhere? Or is that just at the top?
I believe they can go anywhere, but why would you want them anywhere else? For it to look better? but you do have to put the |'s.
I don't know. I was lazy.
![]()
LOL. Hmm... that just gave me an idea!
lets see...
abcdefghijklmnopqrstuvwxyz zyxwvutsrqponmlkjihgfedcba
OLO! Ru blf fhv yzxpdzixh zokszyvg olo is lol! OLO!
Offline
Pecola1 wrote:
ProgrammingFreak wrote:
Pecola1 wrote:
I believe they can go anywhere, but why would you want them anywhere else? For it to look better? but you do have to put the |'s.I don't know. I was lazy.
![]()
LOL. Hmm... that just gave me an idea!
lets see...Code:
abcdefghijklmnopqrstuvwxyz zyxwvutsrqponmlkjihgfedcbaOLO! Ru blf fhv yzxpdzixh zokszyvg olo is lol! OLO!
English please?
Offline
scimonster wrote:
Pecola1 wrote:
ProgrammingFreak wrote:
I don't know. I was lazy.
![]()
LOL. Hmm... that just gave me an idea!
lets see...Code:
abcdefghijklmnopqrstuvwxyz zyxwvutsrqponmlkjihgfedcbaOLO! Ru blf fhv yzxpdzixh zokszyvg olo is lol! OLO!
English please?
LOL! If you use backwards alphabet lol i olo! LOL!
Offline
Pecola1 wrote:
scimonster wrote:
Pecola1 wrote:
LOL. Hmm... that just gave me an idea!
lets see...Code:
abcdefghijklmnopqrstuvwxyz zyxwvutsrqponmlkjihgfedcbaOLO! Ru blf fhv yzxpdzixh zokszyvg olo is lol! OLO!
English please?
LOL! If you use backwards alphabet lol i olo! LOL!
I still don't understand it, and I have to get off now.
Offline
Pecola1 wrote:
nextstorm wrote:
How do I create a new variable/method? After right-clicking, there doesn't seem to be anything that says "create new variable" etc.
EDIT: I mean in the System Browser. I'm trying to make your stage panning block![]()
to create a new method, simply put your method in instance (for a scratch block) by clicking the instance button. Put it in any of the ops, if you cannot chose, use 'other ops'. Click on any method under your op, and backspace the WHOLE method (in the big box at the bottom), don't worry as long as you remember to backspace the whole thing it will not ruin the method. Now type/paste your method in the blank. For a variable INSIDE of a method (like BYOB's script variable) at the top of the page put two up and down lines: || (if you have a keyboard which does not contain them like mine, copy them) put the name of your variable in-between the lines. if you want more than one variable press space and make another name.
Thanks.
Offline
nextstorm wrote:
Pecola1 wrote:
nextstorm wrote:
How do I create a new variable/method? After right-clicking, there doesn't seem to be anything that says "create new variable" etc.
EDIT: I mean in the System Browser. I'm trying to make your stage panning block![]()
to create a new method, simply put your method in instance (for a scratch block) by clicking the instance button. Put it in any of the ops, if you cannot chose, use 'other ops'. Click on any method under your op, and backspace the WHOLE method (in the big box at the bottom), don't worry as long as you remember to backspace the whole thing it will not ruin the method. Now type/paste your method in the blank. For a variable INSIDE of a method (like BYOB's script variable) at the top of the page put two up and down lines: || (if you have a keyboard which does not contain them like mine, copy them) put the name of your variable in-between the lines. if you want more than one variable press space and make another name.
Thanks.
![]()
Wait, so, apparently, only the stage moves, but the pen trails are still stuck there and also the sprites. Darn. D:
Offline
nextstorm wrote:
nextstorm wrote:
Pecola1 wrote:
to create a new method, simply put your method in instance (for a scratch block) by clicking the instance button. Put it in any of the ops, if you cannot chose, use 'other ops'. Click on any method under your op, and backspace the WHOLE method (in the big box at the bottom), don't worry as long as you remember to backspace the whole thing it will not ruin the method. Now type/paste your method in the blank. For a variable INSIDE of a method (like BYOB's script variable) at the top of the page put two up and down lines: || (if you have a keyboard which does not contain them like mine, copy them) put the name of your variable in-between the lines. if you want more than one variable press space and make another name.Thanks.
![]()
Wait, so, apparently, only the stage moves, but the pen trails are still stuck there and also the sprites. Darn. D:
Yes sorry, but the stage costume moves behind the pen marks!
Offline
Pecola1 wrote:
nextstorm wrote:
nextstorm wrote:
Thanks.![]()
Wait, so, apparently, only the stage moves, but the pen trails are still stuck there and also the sprites. Darn. D:
Yes sorry, but the stage costume moves behind the pen marks!
Since I fail (epicly) at Smalltalk, could you make a block that pans the pen trails? Thx if possible
Offline
nextstorm wrote:
Pecola1 wrote:
nextstorm wrote:
Wait, so, apparently, only the stage moves, but the pen trails are still stuck there and also the sprites. Darn. D:Yes sorry, but the stage costume moves behind the pen marks!
Since I fail (epicly) at Smalltalk, could you make a block that pans the pen trails? Thx if possible
![]()
I don't know if it is possible, next time I am looking through the browser I will see. I think I know how to make a pen draw by itself, or know how to find it.
Offline
Hey, I think you missed typed this:
$yourOneLetter = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #yourNameForYourDropdown].
Isn't the 't2' supposed to be 'code'?
Offline
scimonster wrote:
A couple things:
It is "ops" not "opps"
It is in private, not --all--
...That's it.
Still a great tutorial!
--all-- or private
Offline
ProgrammingFreak wrote:
Pecola1 wrote:
ProgrammingFreak wrote:
Also, can you make variables anywhere?What do you mean make variables anywhere? You mean the watcher allowed off the stage? (yes) Or make a new variable for a certain sprite from another sprite? (yes again) Do you mean make it so the user can make their variable go to motion, control et cetera? (yeperoo) What do you mean?
Like making variables in between the '||' anywhere? Or is that just at the top?
Yes. If you want a temp to be able to be accessed by the whole method, you do the top;
if you want it to only be accessed by part of the method, you put it above that part.
Offline