Skip navigation
Indukrishna
Currently Being Moderated

move an image on a layer

Feb 9, 2012 12:22 AM

Tags: #javascript #html5 #limejs

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('obsta cle.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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points