Default animation speed affecting all animations

0 favourites
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Problem Description

    The default animation is affecting the other animations in the object. Specifically when the speed of the default animation is set to 0, the other animations in the object wont run.

    Attach a Capx

    https://db.tt/5RGtgUIY

    Description of Capx

    The cap.x has two of the same object. One is set to the default and the other to an animation.

    Steps to Reproduce Bug

    • Step 1 Open cap, run and notice the animation working.
    • Step 2 Change the speed of the default animation to 0 and notice it stops.

    Observed Result

    Unless the default animation has a speed of 1 or greater the other animations in the object will not play even though they have their own speed set in the animations properties.

    Expected Result

    That the default animation speed wont affect other animations in the object.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 7 64bit

    Construct 2 Version ID

    v163

  • You made a copy of the instance.

    Which make both objects the same.

    Clone your object, and try again

  • Hey lennaert, thanks again for the response.

    You can have copies running different animations though. That doesn't explain why it doesn't work. Unless it is by design that when the default animation speed is set to 0 then all of the animations within are set to 0 automatically, which doesn't really make sense to me.

    I have updated the example to show another instance running another animation at a different speed. It still works, all as long as the default animation is set to at least 1.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Its by design:

    You have 2 sprite instances, same name, SAME PROPPERTIES. if you change propperties of 1, it changes the propperties of both those instances. (as in effect, they are 1 object, just has a copy about in the layout)

    edit: in your example, each instance has one of the animtions set to 0, in effect, setting both instances their animations to 0.

    If you clone an object, you get 2 sepperate instances, each needing a unique name.

    If you change the propperty of one, it does not change the other.

  • GenkiGenga it is a bug. Setting one instance animation speed should not affect any other instances if they have set different initial animation.

  • Cheers shinkan, thanks for the confirmation. Last thing I want to do is waste Ashley's time!

  • GenkiGenga it is a bug. Setting one instance animation speed should not affect any other instances if they have set different initial animation.

    How would setting a different initial animation make the objects animation propperties unique ?

    EDIT:

    from the manual

    Sprite properties

    Animations

    Click the Edit link to open the Image and Animations editor for the object. All instances of the object type share a single set of animations.

    check bold part.

  • The thing that might be misleading is that the default animation is not the literal default setting for the object, but rather just the name of the animation.

    In my posted cap I now have 3 of the same object all playing different animations, the speed is set for each animation separately. Since they all have their own speed it doesn't make sense that one would affect the others in any case.

  • Ok here is a kicker !!

    first, set all defaults animations to 0. (the copies)

    Then set only 1 of them to 100.

    now check your other intances "defaults" they all changed to 100 , while you only changed 1.

    So yes, they effect eachother.

    The last set setting of an instance will count towards all of the objects instances.

  • Every animation have their own properties (Speed, Loop, Reapeat...)

    So why then there's an option to set initial animation/frame/visibility for each instance ?

    If Initial animation for each instance is different in layout editor, why animation speed should be taken from default animation? that have no sens at all

  • Every animation have their own properties (Speed, Loop, Reapeat...)

    So why then there's an option to set initial animation/frame/visibility for each instance ?

    If Initial animation for each instance is different in layout editor, why animation speed should be taken from default animation? that have no sens at all

    check my post above.

    If you change a speed setting for 1 instance, it updates all instances in the editor

  • lennaert you misunderstanding the issue.

  • Look at the image.

    Setting Initial animation here do not take account of each animation speed if "Default" animation have speed set to 0.

  • Because that is a propperty setting for the object on the layout.

    Which is unrelated to animation settings like speed and loop for the sprite itself.

  • How it's not related? If your object have two animations "anim1" speed set to 5 and "anim2" speed set to 10.

    And you place two instances on layout, and set one initial animation to "anim1" and second one to "anim2" and you hit preview. You will see two instances playing two different animations with different speed.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)