LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
maybe you should explain first what you mean with "a wheel effect"
Nevertheless I have the feeling that this will not be possible with the build-in means of Livecode.
On the other hand I am sure you could simply FAKE that look like this:
Create a couple of separate images which represent the current "rotation" and then use a button's icon
to show these X images continuously instead of a FULL rotation of an image.
I will try to create a little example stack a bit later...
glad you like it!
As you see, we are simply selling an illusion (of a rotating wheel) here
The technique of using "send X in ..." is very efficient, since it does not BLOCK like an repeat loop.
Try to get accustomed to this, very important for smooth animations!!
Wow that really is a good way to allow constant animation while not holding up the script at all since in the wait time, the rest of the script will be processing. I am defintely going to use this!
Would you entertain a few follow-up questions about your stack?
1) Being a newbie, I would have written a similar stack using handlers. You used "command". What's the difference? (The LC dictionary doesn't help much on this point.)
2) What is the result you are getting back from the "send" message in lin 19 and 20? I tried to view it as a variable and did not see it. You stored it in tAnimationMessage and used it to cancel the operation. Is it a message ID?
3) You end the animation_stop with "enable btn "animate" of cd 1". What is the reason for that? (Did the animation process disable the button?)