Skip to main content
Inspiring
October 16, 2021
Question

createjs: camera issue

  • October 16, 2021
  • 1 reply
  • 272 views

2 hours on this.

1 - Does the camera work with canvas. 

If not, then that solves my problem ie: it doesn't work - then why do they let you access it when I'm dealing with createjs and canvass.

 

2 - If it does work then I have a bug.

a - I have an app that let's me drag movieclips.

b - MCs are stored in an array.

c - I loop through the array to add functionality. Events on mouse down, up, move + bind to a function.

So that's the drag part.

Timeline and camera.

I have added frames to the timeline and a couple of keyframes.

In one of those keyframes I add the camera functionality. Enlarge between two KFs and I add a classic tween.

I add a button - when you press the button it should gotoAndPlay that keyframe.

1 - It doesn'tgotoAndPlay

2 - On top of that - the ducky movieclip stops being draggable.

 

If I remove the camera layer - everything works perfectly.

 

 

    This topic has been closed for replies.

    1 reply

    Inspiring
    October 16, 2021

    1 - The draggable has been corrected

    2 - The camera issue continues.