View Full Version : 101 Questions Regarding Animated Layers
rintaro82
11th September 2002, 08:58
Does the meer act of defining an image as an animated layer cause it to animate? Is that all I need to do; give it an image and tell it how wide and high each frame is? Does the image strip have to be stacked top to bottom or can I do it left to right? Can I create an animated layer and then assign it to a button, creating an animated button? Inquiring minds want to know.:igor:
rintaro82
11th September 2002, 10:08
OK, somehow I FINALLY got an animated later to work. But as I asked above, can this layer now be assigned somehow to a button as an image? Also, is there a way to regulate the animation speed? :confused:
Naamloos
11th September 2002, 13:22
speed="100" (in ms)
you'll need some little maki for that :)
Gonzotek
11th September 2002, 14:20
You can use an animatedLayer as a button, with MAKI
Here's a simple example:
#include <lib/std.mi>
global container yourContainer;
global layout yourLayout;
global animatedLayer youraniLayer;
system.onscriptloaded(){
yourContainer = system.getContainer("yourContainerId");
yourLayout = yourContainer.getLayout("yourContainerId");
youraniLayer = yourLayout.findObject("youraniLayerId");
}
youraniLayer.onLeftButtonUp(int x, int y){
system.play();
}
rintaro82
17th September 2002, 11:15
Thanks for the help. I haven't tried maki yet at all. Guess I'll have to take a crack at it.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.