0 Replies Latest reply: Feb 9, 2012 12:22 AM by Indukrishna RSS

    move an image on a layer

    Indukrishna Community Member

      hai, 

       

       

       

      I have two images in a layer .

      var

       

      carTarget
      =new lime.Layer().setPosition(100,100),
      obstacleTarget=new lime.Layer().setPosition(100,100);

       

       

      carImage
      =new lime.Sprite().setSize(96,278).setFill('car2.png');
      carTarget.appendChild(carImage);






      var obstacleImage
      =new lime.Sprite().setPosition(450,0).setSize(objWidth,132).setFill('obstacle.png');






      carTarget.appendChild(obstacleImage);

       

       

      I appended both image to carTarget . now i want to move obstacleImage. Is there any way to animate the  obstacleImage only not the layer carTarget

       

      I want to animate  only one image