Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
animated overlay?

cosmo
Registered User
Quote
2014-12-17 21:58:06

Hi,

is it possible to animate texture of overlay?
Like in the code below:


var overlay = new CL3D.Overlay2DSceneNode();
overlay.setShowImage(engine.getTextureManager().getTexture("test1.png", true));
var textures = new Array(
engine.getTextureManager().getTexture("test1.png",true),
engine.getTextureManager().getTexture("test2.png", true),
);
var animator = new CL3D.AnimatorAnimateTexture(textures, 250, false);
overlay.addAnimator(animator);

Unfortunately this code does not work. Picture is visible but not animated.

Thanks a lot.


niko
Moderator
Quote
2014-12-18 12:04:43

No, sorry, this only works for 'normal' nodes, not for 2D Overlays, you would have to change this yourself.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact