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

#1 2008-07-24 12:00:12

mikekbrad
Scratcher
Registered: 2008-07-23
Posts: 2

Having a sprite get its own position

I have a sprite called BOX which has a set of scripts in which it checks its own x position in relation to the x position of another object.  Currently, it checks its own x position by sensing "x position of BOX".  Is there a way to make a sprite reference itself in another way?  I want to duplicate this sprite many times, and have each one act independently.  However, when I duplicate BOX, and the new item comes up named Sprite 1, all the references still reference BOX.  I don't want to have to manually change all these to say Sprite 1.  Is there a way to make a sprite check "my position" (its own position)?

Thanks in advance.

Offline

 

#2 2008-07-24 12:02:23

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Having a sprite get its own position

<x position> use that. It's only the X Position of the sprite your using it for


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-24 13:11:50

mikekbrad
Scratcher
Registered: 2008-07-23
Posts: 2

Re: Having a sprite get its own position

Great, thanks!  That's exactly what I need.  Don't know how I missed it before!

Offline

 

Board footer