Hybrid View

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
    kenjuks is on a distinguished road

      0  

    Default Animated object drag

    Animated object drag


    Hi,

    Is it possible somehow to drag the object (forward and backward) along the animation in Sencha Animator?

    Regards,
    ken

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Apr 2012
    Posts
    278
    Vote Rating
    23
    miro.bojic will become famous soon enough miro.bojic will become famous soon enough

      0  

    Default


    Hi Ken, and welcome to the forums.

    Could you give us a little more information of what are you trying to make? The way I understand it, you want to have an object that you can drag, that would move the animation backward and forward in timeline...is this correct?

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
    kenjuks is on a distinguished road

      0  

    Default Here is the sample

    Here is the sample


    I did an animation and wondering is it possible to drag the animated object so its basically goes upstairs or downstairs. So the person can control the movement.

    http://www.mullmull.com/Lotte-test/

    Thanks, ken

  4. #4
    Sencha - Architect Dev Team
    Join Date
    Apr 2012
    Posts
    278
    Vote Rating
    23
    miro.bojic will become famous soon enough miro.bojic will become famous soon enough

      0  

    Default


    Hi Ken,

    It would be possible to implement such behavior, but it would require some custom JS coding. You would need to record that you started dragging on mousedown (or touchstart), then update the position of the object on mousemove (or touchmove) and record end of dragging on mouseup (or touchend). The exact character position while dragging (I suppose you would want the character to slide only up and down the handrail), would have to be calculated from the position of the cursor to match the path that you want it to follow.

    It's a challenging task

    Good luck with your project - the graphics look really impressive! Great work!

  5. #5
    Sencha User
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
    kenjuks is on a distinguished road

      0  

    Default


    Thank you for a quick response again! I appreciate that.

    I understand the logic behind it but wow, this is overkill concerning to my JS skill.
    For a conclusion I'm really satisfied with the current result

    The other question is about image load at scene change. The animation works on tablets but the movement between scenes makes white blocks to appear. I suspect it to be an previous image release and a new image load issue or smth like that. I tested with iPad2.

    hint: click to the house on shore (touch start action)
    http://www.mullmull.com/Lotte-touch/

    Regards, ken

  6. #6
    Sencha - Architect Dev Team
    Join Date
    Apr 2012
    Posts
    278
    Vote Rating
    23
    miro.bojic will become famous soon enough miro.bojic will become famous soon enough

      0  

    Default


    Hi Ken,

    I will see to test the link a little later today on an iPad and then I will get back to you on this.

    I'm really curious to see your project finished! Looks great!

Thread Participants: 1

Tags for this Thread