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

#1 2012-09-13 04:49:39

bella14354
New Scratcher
Registered: 2012-09-13
Posts: 1

controling the x-postition

hi all,
i would love some help.
i am creating a game and the cat need to say if it is on the right side or left side depending on the x position. What scripts do i use to do this???

Offline

 

#2 2012-09-13 04:51:38

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: controling the x-postition

On the right of what?

If the screen,

if <(x position) > [0]>
 say [I'm on the right!]
else
 say [I'm on the left!]
end


http://i50.tinypic.com/312u714.jpg

Offline

 

Board footer