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

#1 2013-02-21 05:29:57

vkaiims
New Scratcher
Registered: 2013-02-21
Posts: 1

can someone help me out with this script?

here's a pic of my script, the motion and xvelocity part are fine but the sprite is not switching costumes as desired when xvelocity is > 0

i've not yet worked out on the reverse direction when xvelocity is  < 0, right now i'm just trying to make it work while it's moving forward.......

http://tinypic.com/view.php?pic=i1gtgh&s=6

Offline

 

#2 2013-02-21 06:37:35

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: can someone help me out with this script?

You need the if/else inside the forever block. Because of this, you should also remove the forever inside the if.

Offline

 

Board footer