user1253869
user1253869

Reputation: 1

How Move Image in kineticjs

How can I move an image from left to right repeatedly in KineticJS?

Also, how do I change the speed of the animation cycle?

Upvotes: 0

Views: 1281

Answers (1)

jzap
jzap

Reputation: 112

If you're using Kinetic.Image, you could use yourImage.move(yourNewXCoordinate, yourNewYCoordinate). For the speed, I recommend you to use TweenMax from greensock. Here's the link http://www.greensock.com/gsap-js/

Upvotes: 5

Related Questions