Question about Stop/Start Animation
I noticed animations of Actives are handled slighlty different to MMF1.5 - just want to know if this is a feature or a bug, don't want to change my code multiple times :)
I'm using Actives to display graphical buttons in multiple languages. The first frame shows the picture of the german button and the second frame shows the english button. I use a global value to tell the Active which language is required.
The Active button has 2 animations: it's highlighted while overlapped by the mouse and dehighlighted otherwise.
Let's say the Global Value=0 (german, 1st frame of the Active).
I initialize:
Start of Frame
- Stop Anim (Button)
- Force Animation Frame to Global Value
Now there's a difference once I want to change the animations from highlighted to dehighlighted.
MMF1.5 works this way:
Mouse is over Active(Button)
- Change animation to highlighted
Mouse is not over Active(Button)
- Change animation to dehighlighted
But in MMF2 I have to do it this way:
Mouse is over Active(Button)
- Start animation
- Change animation to highlighted
- Stop animation
Mouse is not over Active(Button)
- Start animation
- Change animation to dehighlighted
- Stop animation
So, before I change the code of many buttons: is MMF2 supposed to work this way or will it be changed?
Re: Question about Stop/Start Animation
I have tried to do what you say in MMF2, and it works very well with just a change animation and nothing more! Here is the link to my example :
www.clickteam.com/francois/animation.mfa
If it is not what you do, I would like to see your application!
Re: Question about Stop/Start Animation
Merci Francois, but that's not exactly what I'm trying to do. I guess it's harder to explain than to understand once you see it :)
I enhanced your example and added the original code that worked fine in MMF1.5 but no longer in MMF2. I also added my code for a workaround in MMF2, so you can directly see the differences.
http://www.jochenkaercher.de/tutorials/animation2.mfa
Re: Question about Stop/Start Animation
OK I had a look at your application.
I have successfully removed the start animation and stop animation that you have inserted before changing the animation, and it works perfectly! Why did you insert them? I send the application back.
The force animation action has been changed in mmf2 tp correct a bug (I cant remember which one) : it resets the forced frame to zero. So you have to force the frame after changing the animation in MMF2...
www.clickteam.com/francois/animation2.mfa
Re: Question about Stop/Start Animation
Thank you! I was thinking too complicated. I thought the animation itself doesn't change after stopping it, didn't notice it works and only the frame needs to be forced again.
Re: Question about Stop/Start Animation
I wish the animation wouldn't go back to the default animation (stopped) if you didn't keep on calling it.
Also it is annoying that when changing direction to a non looping animation (as in a group of pictures) it won't reset to the start of the animation.