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

#1 2009-10-24 18:55:18

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

*Property* of *ObjectName* does not work with variables.

http://i364.photobucket.com/albums/oo85/RHY3756547/BrokenBlock.png

The block in the image above just seems to output 0 all the time, even if you input a valid object name, or try with any of the properties. Firstly I was going to use this in my shadow engine, no luck, and now an advanced collision engine, still no luck. Is this a glitch or was this never meant to work?

Last edited by RHY3756547 (2009-10-24 18:55:42)

Offline

 

#2 2009-10-24 19:04:38

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

Re: *Property* of *ObjectName* does not work with variables.

You can't put a variable in it, because a variable doesn't really have an x position.


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

Offline

 

#3 2009-10-25 04:59:27

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: *Property* of *ObjectName* does not work with variables.

Lucario621 wrote:

You can't put a variable in it, because a variable doesn't really have an x position.

No - I mean like the variable defining an object. -.-

Say for example you made a sprite and called it "Cat" and then made another. In the second you could put <touching *variable*> if the variable was set to "Cat" and it would work ("you can't exactly touch a variable lolol"), whereas putting a variable in that block just freezes the functionality of the block.

Offline

 

#4 2009-10-25 05:14:44

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: *Property* of *ObjectName* does not work with variables.

RHY3756547 wrote:

Lucario621 wrote:

You can't put a variable in it, because a variable doesn't really have an x position.

No - I mean like the variable defining an object. -.-

Say for example you made a sprite and called it "Cat" and then made another. In the second you could put <touching *variable*> if the variable was set to "Cat" and it would work ("you can't exactly touch a variable lolol"), whereas putting a variable in that block just freezes the functionality of the block.

it works for me  smile , just so you know, that method is case sensitive  smile

Offline

 

Board footer