Move action causes image to jump

smiller7502
Community Member Posts: 181
I want to make a needle move up and down a gauge by a fixed amount when certain actions occur. Seems easy enough, and I thought I had got this right on my first try -- until I tried to make the needle move twice in a row.
Please try the attached demo. For me, the first button click moves the needle exactly as I want. But after that first click, clicking either button again makes the needle jump to the top of the screen, move up or down from there a little ways, and then snap to the desired location.
Is this a bug, or am I missing something?
Please try the attached demo. For me, the first button click moves the needle exactly as I want. But after that first click, clicking either button again makes the needle jump to the top of the screen, move up or down from there a little ways, and then snap to the desired location.
Is this a bug, or am I missing something?
Comments
-
Hi Stan,
Added a textfield in it, showing the NeedleVar to check whether it has the proper Y. Well it has. Then i removed the Swing effect.... now it didnot move out that far...another check at your file...setting the speed from slow to fast...well that did it...
So basically the Swing does its work...swinging out the needle out of screen and then returning. Just checked whether you can have the Swing effect with a moderate speed. Well that does work.
Basically the effects and transitions in Lectora are bad to control. If you want easing and these kind of effects. Go for GSAP. -
Well, the Swing effect was only there because it's the default and I forgot to do anything with it. But yeah, none of the effects do what I want. I'm still mystified by the first click working perfectly and then later clicks not, but oh well.
I got almost all the way to what I wanted with JavaScript, but GSAP is SWEET. Thanks for the pointer! It's working great now.
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products