Page 1 of 1

Animated buttons

PostPosted: February 7th, 2009, 7:38 pm
by Pixel-Z
I like to be able to start an animation when a button is pressed or mouseover. I think this is the easiest way to have animated or flashing buttons.
Thanks

PostPosted: February 7th, 2009, 10:20 pm
by logokas
I think there was some talk about it. No, wait..those were indicators.

Animations should be possible to trigger via _hover and _down layers. Read up on the documentation and give it a try.

PostPosted: February 11th, 2009, 4:45 am
by Pixel-Z
logokas Wrote:I think there was some talk about it. No, wait..those were indicators.

Animations should be possible to trigger via _hover and _down layers. Read up on the documentation and give it a try.


My idea was to start an animation when you just place the cusor over a button and another animation when you press the same button. Here is an example:

play_over modify(animation_over) acanplay
play_normal modify(animation_normal) acanplay
play_down modify(animation_down) acanplay

1 Button with 3 states, each state starts different animation

I think something like this is not present in the newest build, tell me if I'm wrong

PostPosted: February 11th, 2009, 12:01 pm
by Jikaru
That might already work, you should try it. It looks like it would work.

PostPosted: February 11th, 2009, 1:36 pm
by Cliff Cawley
Pixel-Z Wrote:play_over modify(animation_over) acanplay
play_normal modify(animation_normal) acanplay
play_down modify(animation_down) acanplay


This won't work in the way you want it to.

modify is executed when you click on a button, and currently that comes from the _normal.

Essentially this will just play the animation, animation_normal when you click the play button.

modify is for interaction in the sense of a click, i'd have to add something special to trigger when the layer shows itself instead.

Cliff :)

PostPosted: February 11th, 2009, 4:25 pm
by Lance
I've also been wanting this since my first skinning experience with Xion. Thanks for clearing that up though Cliff as I've tried sooo many different methods to try and trigger on hovers. I guess this is still a healthy request then. +1 from me.

Peace, Lance