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

#1 2008-12-05 20:14:12

scratchrulesOMG
Scratcher
Registered: 2008-12-03
Posts: 14

help...........save me..................................thank you^^

hi i was wondering is there a way to detect another sprites x/y position?
and is there a way where i can find out another's sprite direction? like where its going which way its going?

Offline

 

#2 2008-12-05 20:17:31

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

Re: help...........save me..................................thank you^^

Sure...in the Sensing area, just below the Timer blocks you will see a strange looking block with two drop-down menus.  You can use that to sense the position and direction (as well as other attributes) of any sprite from any other sprite.  Very strong magic!


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

Offline

 

#3 2008-12-05 20:30:12

scratchrulesOMG
Scratcher
Registered: 2008-12-03
Posts: 14

Re: help...........save me..................................thank you^^

whao lol..... but how can i sense another sprites x/yposition without using that block? is there another way to do it?

Offline

 

#4 2008-12-08 06:42:21

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: help...........save me..................................thank you^^

scratchrulesOMG wrote:

whao lol..... but how can i sense another sprites x/yposition without using that block? is there another way to do it?

But why do you always try the hard way? The blocks are there so you can use them.

Last edited by bhz (2008-12-08 06:42:37)

Offline

 

#5 2008-12-08 09:57:33

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Re: help...........save me..................................thank you^^

scratchrulesOMG wrote:

whao lol..... but how can i sense another sprites x/yposition without using that block? is there another way to do it?

you could use variables...

Offline

 

Board footer