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

#1 2011-10-24 20:47:06

rergen
New Scratcher
Registered: 2011-10-24
Posts: 1

"x position of Sprite 1"

I can't get this block to lock into any of the control blocks.  can anyone help me understand why and how to make it work without making me feel too dumb?

Offline

 

#2 2011-10-24 20:57:35

carbonec
Scratcher
Registered: 2011-07-26
Posts: 25

Re: "x position of Sprite 1"

Which specific control block were you trying to use? The x position value is able to be locked into some of the control items.
It cannot be used in: When [green flag] clicked, when [space] key pressed, when Sprite1 clicked, forever, forever if (you may be able to use this one with an operator), if (may use operator), if else (may use operator), wait until (operator), repeat until (operator), stop script, and stop all.

Offline

 

#3 2011-10-24 20:59:34

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: "x position of Sprite 1"

X position of Sprite __ is not a boolean (true or false) or any condition reporter (like... "this happened!" "this is touching mouse!" etc) but is a number. It's like saying "If 2," which doesn't make sense. You can use a boolean like <_=_> and put x position in there if you wish.

Offline

 

#4 2011-10-26 07:11:44

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: "x position of Sprite 1"

Kayybee got it right, you can't put a block which is sort of like a square with rounded corners in an "if" or any other control block. You can, however, put it in an =, > or <, found in the operators tab.


Why

Offline

 

Board footer