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

Adobe animate - createJS filter on movieclip animation

Contributor ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

How can i combine animation with createJS filter(s) on movieclips in adobe animate?

If a "drop" the filter on anything that moves the animation stops. (i see some spirtesheet solutions but i want to avoid that. I need solution for movieclip animation)

Here's my EaselJS code ("sliderValue" is a value of a slider, please see example (link)):

 

myMovieClip.filters = [
       new createjs.ColorFilter(1,1,1,1, sliderValue,sliderValue,sliderValue,0)
 ];
 myMovieClip.cache(0, 0, 195, 195);

 

As you can see in this example: www.fotobetyar.hu/easeljs/ I just wanted to rotate AND change the brightness of the cross/movieclip.

Rookie programmer here. Please write examples. Thanks

Views

299

Translate

Translate

Report

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 ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

Hi.

 

I think you're gonna have to iterate over each shape and/or bitmap in your Movie Clip instance and apply the filter individually instead of applying to the whole container.

 

Please let us know if this could work for you.

 

Regards,

JC

Votes

Translate

Translate

Report

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 ,
Oct 18, 2021 Oct 18, 2021

Copy link to clipboard

Copied

LATEST

You don't. CreateJS filters are implemented in JavaScript instead of natively by the browser, which makes them too slow for real-time animation effects. So CreateJS stops you from shooting yourself in the foot by not even allowing them to be animated.

Votes

Translate

Translate

Report

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