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

#1 2010-03-28 11:21:32

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Moving Variables [Tutorial]

OK, to make a moving variable follow these simple steps:
1. Make a variable and change its viewer to 'large readout' (or something else).
2. Make a sprite that is a 480x360 white rectangle.
3. Turn fill screen off by shift-clicking the 'R' in the Scratch logo.
4. Drag the variable slider over the sprite and middle-click it until you see buttons around it with 'Watcher' written underneath (in pink)
5. Click the red button and select 'embed...' then 'ScratchSpriteMorph'. Note: the embedding can be a little tricky, the option 'ScratchSpriteMorph' will not always be there. If it isn't move the variable around a bit and keep trying.
6. Turn fill screen on again (shift-click the 'R' again and select it from the menu)
7. Give the sprite a script like this:
[blocks]
<when green flag clicked>
<set[ ghost ]effect to( 100
<forever>
[/blocks]
Use show/hide to show/hide the variable and motion blocks to move it. Layering blocks also work.
[blocks]<end>[/blocks]


nXIII

Offline

 

#2 2010-03-28 15:18:09

GirWaffles64
Scratcher
Registered: 2009-08-09
Posts: 1000+

Re: Moving Variables [Tutorial]

I'm confused... could you make a project, or have some pictures?


hey kiddoes i'm back

Offline

 

#3 2010-03-28 15:21:17

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: Moving Variables [Tutorial]

.... it works, but what can this be used for?
anyways, its AWESOME!

Last edited by roger- (2010-03-28 15:26:51)


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#4 2010-03-28 18:44:29

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Moving Variables [Tutorial]

We should have this on Panther!


http://i46.tinypic.com/dw7zft.png

Offline

 

#5 2010-03-28 19:51:39

Greenboi
Scratcher
Registered: 2010-01-30
Posts: 1000+

Re: Moving Variables [Tutorial]

Awesome! Works great! Thanks nxII!  smile

Offline

 

#6 2010-03-28 20:45:57

GirWaffles64
Scratcher
Registered: 2009-08-09
Posts: 1000+

Re: Moving Variables [Tutorial]

Ahh, got it to work.


hey kiddoes i'm back

Offline

 

#7 2010-03-28 21:57:04

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Moving Variables [Tutorial]

Cool...but how do you middle click a two-button mouse?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#8 2010-03-28 21:59:03

GirWaffles64
Scratcher
Registered: 2009-08-09
Posts: 1000+

Re: Moving Variables [Tutorial]

Paddle2See wrote:

Cool...but how do you middle click a two-button mouse?

What I do is simply drag it over the big white sprite, then right click anywhere until it selects the variable


hey kiddoes i'm back

Offline

 

#9 2010-03-29 18:06:56

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Moving Variables [Tutorial]

SeptimusHeap wrote:

We should have this on Panther!

Difficult, but I'll see what I can do...


nXIII

Offline

 

#10 2010-03-29 18:15:15

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Moving Variables [Tutorial]

Paddle2See wrote:

Cool...but how do you middle click a two-button mouse?

Alt-click (hold alt down while clicking)


nXIII

Offline

 

#11 2010-03-29 21:41:13

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Moving Variables [Tutorial]

I still can't get that darn halo to show up!

Offline

 

#12 2010-03-29 22:11:21

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: Moving Variables [Tutorial]

Very good tutorial! But as you know, it may be a little complicated to new users, so some screenshots would be nice  smile


Scratchin' since 2007

Offline

 

#13 2010-03-31 01:44:16

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Moving Variables [Tutorial]

Wow... that's great! But the variable was slow...  hmm


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#14 2010-03-31 06:21:25

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

Re: Moving Variables [Tutorial]

SeptimusHeap wrote:

We should have this on Panther!

We could... but it would be pretty hard to implement it...


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

 

#15 2010-03-31 07:56:15

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Moving Variables [Tutorial]

Chrischb wrote:

Wow... that's great! But the variable was slow...  hmm

Make the sprite the variable was embedded in 1 x 1.


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#16 2010-03-31 08:06:11

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Moving Variables [Tutorial]

ThePCKid wrote:

I still can't get that darn halo to show up!

Last edited by ThePCKid (2010-03-31 08:06:20)

Offline

 

#17 2010-03-31 08:56:46

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Moving Variables [Tutorial]

ThePCKid wrote:

I still can't get that darn halo to show up!

Just making sure, did you turn full screen off?


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#18 2010-03-31 09:10:38

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

Re: Moving Variables [Tutorial]

Does it work online and in presentation mode?


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

 

#19 2010-03-31 09:17:31

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Moving Variables [Tutorial]

markyparky56 wrote:

Does it work online and in presentation mode?

Not online but it does work in presentation mode.


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#20 2010-03-31 09:24:50

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

Re: Moving Variables [Tutorial]

MathWizz wrote:

markyparky56 wrote:

Does it work online and in presentation mode?

Not online but it does work in presentation mode.

Ok.


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

 

#21 2010-03-31 15:56:11

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Moving Variables [Tutorial]

Middle-click?


http://i.imgur.com/WBkM2QQ.png

Offline

 

#22 2010-04-01 11:15:13

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

Re: Moving Variables [Tutorial]

Lucario621 wrote:

Middle-click?

mouse wheel button.


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

 

#23 2010-04-01 19:15:28

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: Moving Variables [Tutorial]

MathWizz wrote:

ThePCKid wrote:

I still can't get that darn halo to show up!

Just making sure, did you turn full screen off?

Yes!

Offline

 

#24 2010-04-01 19:24:19

somelia
Scratcher
Registered: 2009-09-13
Posts: 1000+

Re: Moving Variables [Tutorial]

Paddle2See wrote:

Cool...but how do you middle click a two-button mouse?

Alt-click.

Offline

 

#25 2010-04-04 04:42:59

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

Re: Moving Variables [Tutorial]

somelia wrote:

Paddle2See wrote:

Cool...but how do you middle click a two-button mouse?

Alt-click.

Really? Interesting... clever...


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

 

Board footer