Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Some elements remain on screen when playing animation

New Here ,
Feb 14, 2017 Feb 14, 2017

I created a canvas animation with animate (animation ) but some elements remain on the screen after they should disapear.

I have a warning message but i dont understand how to solve it and if this message is the origin of my problem :

AVERTISSEMENTS :

** 17 Bitmaps packed successfully into 1 spritesheet(s).

Les numéros d’images dans EaselJS commencent à 0 au lieu de 1. Par exemple, ceci affecte les appels gotoAndStop et gotoAndPlay. (52)

Les interpolations de mouvement sont publiées en tant qu’animations images par images. Utilisez des interpolations classiques dans la mesure du possible. (47)

I don't know how to solve this problem, so thanks all for help.

988
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 14, 2017 Feb 14, 2017

that's just a warning/informational message.  it's causing no problem.

how is the element added to the display?  code?  by adding to the stage from the library?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 14, 2017 Feb 14, 2017

I added bitmap elements from the library

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 14, 2017 Feb 14, 2017

you added something from the library onto a layer's keyframe, correct?

you inserted an empty keyframe on that same layer, correct?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 15, 2017 Feb 15, 2017

kglad  a écrit

you added something from the library onto a layer's keyframe, correct?

you inserted an empty keyframe on that same layer, correct?

I am not sure to understand what you mean.

I drag and drop a bitmap from the library on a previous keyframe, i inserted a new keyframe at the frame i want my object to drag outside the scene and i created a motion tween from the last keyframe inserted.

I try to hide all layers except one that present the problem and it is ok : the tween function correctly. Then i publish my animation réintroduscing layers one by one and when i add one of the layers, the tween suddenly crashed. I recreated this layer, erasing all the content of the layer and draging again the bitmap but it change nothing.

I try to delete all classical tween, all alpha tween, all motion tween on other layers but the problem remain.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 15, 2017 Feb 15, 2017

I published my animation hiding all but 3 layers...  the front part of an hexagonal module, the front and the back of an other module. It is this front part of the first module that cause the problem, it is ok if i hide the layer.

The front part of first module is due to disapear (with no tween at all !) but it dont disapear ; the second module is due to motion tween at the bottom of the scene but a part remain in the loop. I try to recreate the layer but it change nothing.

link to watch the animation

I dont understand where is the origin of this problem.

I export the animation correctly on an animated gif

http://www.alienor.org/extension/alienor/design/alienor/images/musee3d/animation.gif

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 15, 2017 Feb 15, 2017

if you didn't insert an empty keyframe where you want your object to be removed, what did you do to remove it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 16, 2017 Feb 16, 2017

I am not sure to understand. I never add an empty keyframe after i make disapear an object ; I just dont insert any image at all !

So I try to add an empty keyframe after some of my objects has disparear but it changed nothing, one object still remain.

I had a screenshot so you can see the timeline of my animation. each hexagons is divided in two layers : the front colored part and the back grey part.In the published animation, the "salle bleue" layer remain on the screen after frame 77. The motion tween is to change alpha to 0.

screenshot.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 16, 2017 Feb 16, 2017

I had a doubt about the fact that some of my hexagon are in two parts, each part on a separate layers (because my character has to go inside each part) and sometimes i put the both front and back parts on the same layers.

In case this could be part of the problem, i decided to split each part of all hexagons on two distincts layers (one bitmap, one layer)... and it's worth !

Now each time one of my hexagon move or disapear, a part remain on the screen. It seems Animate dont accept two element move on the same direction at the same moment !

screenshot2.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 16, 2017 Feb 16, 2017
LATEST

i don't think it's an animate problem.  i think there's a problem with your setup.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 14, 2017 Feb 14, 2017

A problem that would give the symptoms you're describing is that under CreateJS symbols remain in memory after you go somewhere that they don't exist. So for example, if you go to a frame and alpha tween something until it's opaque, go away from there, and come back again, it will be opaque. For cases like that you should include code to reinitialize the object, don't rely on what its timeline setting was.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 14, 2017 Feb 14, 2017

the problem produces at different moments during the animation. I change the alpha settings of some elements (texts by example) with a "classic tween" and in the same time, some elements go outside the scene with a "motion tween"

I try to change this interpolation for an image by image animation but no success

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines