XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Rotator inverse movement? https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2957 |
Page 1 of 1 |
Author: | Jimking [ April 16th, 2013, 12:08 pm ] |
Post subject: | Rotator inverse movement? |
Is possible and how can I make a rotator with inverse movement..? (backwards) |
Author: | Tony [ April 16th, 2013, 5:21 pm ] |
Post subject: | Re: Rotator inverse movement? |
rotator1.percent = rotator1.percent - 1; or image1.rotateAngle = image1.rotateAngle - 5; |
Author: | Jimking [ April 18th, 2013, 3:27 am ] |
Post subject: | Re: Rotator inverse movement? |
Tony wrote: rotator1.percent = rotator1.percent - 1; or image1.rotateAngle = image1.rotateAngle - 5; Thank you Tony but could you please be more specific...? Where I have to put this values? ![]() |
Author: | Jimking [ December 2nd, 2016, 10:14 am ] |
Post subject: | Re: Rotator inverse movement? |
I need help guys. I'm trying to use Tony's script but I can't figure out how and if it works.. I tested it putting the script under function datetimecore1OnUpdate(Sender) or function widgetOnLoad() but no luck.. What I'm doing wrong..? ![]() |
Author: | meme [ December 3rd, 2016, 12:16 pm ] |
Post subject: | Re: Rotator inverse movement? |
Tested this with datetimecore1 refresh interval set to 3 seconds, works OK. function datetimecore1OnUpdate(Sender) { image1.rotateAngle = image1.rotateAngle - 5; } |
Author: | Jimking [ December 3rd, 2016, 1:39 pm ] |
Post subject: | Re: Rotator inverse movement? |
Thanks meme! I had to changed the graphics but I will test it. ![]() Since the refresh interval need to be changed to 3 secs, means that something is wrong though... |
Author: | meme [ December 3rd, 2016, 5:16 pm ] |
Post subject: | Re: Rotator inverse movement? |
No... I only tested it at 3 seconds, just tested it again at 1 second, 500 ms and 50 ms, all work OK. Not related but very handy, at 50 ms the graphic rotates as if smoothly animated. If it pauses during rotation then it shows the effect of other processes on your system, possibly other widgets running refresh or datetime functions. |
Author: | Jimking [ December 3rd, 2016, 7:05 pm ] |
Post subject: | Re: Rotator inverse movement? |
Thanks for your reply meme. ![]() Before your answer I had tried using a rotator instead of image and didn't work.. So I suppose that works only using an image. |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |