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

#1 2011-07-04 14:19:39

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Remote sensor values?

In scratch sensing, the sensor value block confuses me, i heard you can use it with Variables, can somone please explain how variables and the sensor block link together please?


I'm back.
Maybe.

Offline

 

#2 2011-07-04 14:30:26

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Remote sensor values?

Please help?


I'm back.
Maybe.

Offline

 

#3 2011-07-04 14:43:25

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Remote sensor values?

I am still slightly new, but i am already using sensor values


I'm back.
Maybe.

Offline

 

#4 2011-07-04 15:06:10

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Remote sensor values?

Can somebody explain to me too? I have no idea what they do, I saw it in a project once.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#5 2011-07-04 15:23:34

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Remote sensor values?

Thescratch, theyre somthing to do with mesh, because i just experimented and found the link:

Variables are a user set object, say if P1 says somthing, using the sensor value, when P1 says somthing, it will appear on P2's screen and vice versa. Thats the basic connection beween them.  smile


I'm back.
Maybe.

Offline

 

#6 2011-07-06 12:29:30

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Remote sensor values?

can anyone help by explaining more ?  smile


I'm back.
Maybe.

Offline

 

#7 2011-07-06 14:23:05

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Remote sensor values?

If you mean the [(pull-down) of (pull-down)] block;

ThIS sensor block lets a sprite "look" at another sprite's xposition, yposition, direction, etc.  It also lets a sprite "look" at another sprite's "for this sprite only" variables.

Make a sprite and, in that sprite, make a variable "for this sprite only" - call it "test" and set it to some number.

Make another sprite and in the script area, pull out the sensing block that has the two pull-downs.  On the right pull-down, you can lelect "sprite1", in the left pull-down, you'll now see information about sprite1 - including the "test" variable.  Select this and click the sensing block - it will return the value of sprite1's private variable.

Last edited by EdnaC (2011-07-06 14:27:49)

Offline

 

#8 2011-07-06 14:38:56

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Remote sensor values?

EdnaC, i mean the (pulldown) sensor value.


I'm back.
Maybe.

Offline

 

Board footer