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

#1 2012-11-17 19:01:22

Mik_Ael
New Scratcher
Registered: 2012-11-17
Posts: 15

Compare x coordinates of two differents sprites

Hi !

I'd like to compare x coordinates of two different sprites, is there a way to do that ?

Thanks

Offline

 

#2 2012-11-17 19:06:25

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Compare x coordinates of two differents sprites

Yes, it is possible. Just use this script:

<(x position) = ([x position v] of [sprite2 v])>
Filler//You can swap the = with whatever you want.

I hope that this helps!

Last edited by ErnieParke (2012-11-17 19:06:41)


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2012-11-17 19:09:26

Mik_Ael
New Scratcher
Registered: 2012-11-17
Posts: 15

Re: Compare x coordinates of two differents sprites

It more than helps !  big_smile  Thank you again, maybe I can share my 1st project tomorrow  big_smile

Offline

 

#4 2012-11-17 19:20:39

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Compare x coordinates of two differents sprites

Mik_Ael wrote:

It more than helps !  big_smile  Thank you again, maybe I can share my 1st project tomorrow  big_smile

Great! I can't wait to see it.  smile


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer