Advertisement
bowenac

move on click

Jan 4th, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var yodaGroup = new Kinetic.Group({
  2. x: 250,
  3. y: 30,
  4. draggable: true
  5. });
  6.  
  7. I want to adjust or add to the x and y cordinates for the yodaGroup above
  8. using a button click that triggers this function below
  9.  
  10. // need to figure out this funnction
  11. function left() {
  12. yodaGroup.x += 5; // move image by 5px
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement