move without waiting makes obj jump to new location|SOLVED
Posted: Thu Jul 31, 2014 1:36 pm
Hi again,
another problem: I have a multiplechoice-quiz. When the user selects an answer a group moves into view detailing wheter he or she answered correctly. This group slides into view from the bottom of the screen.
It works fine if I just move it, but then you notice that the clock which has to start counting down only starts after the move is completed. So, add the 'without waiting' to the code. Right? Unfortunately, the group doesn't display until after it has reached it's location, so it just jumps on screen after the 20 ticks it should have taken to slide on... and the clock only starts after the group is visible.
animation, but of course the rest of the handler waits
the group jumps into view after 20 ticks and even then the rest of the handler is executed after it appears
Anyone?
another problem: I have a multiplechoice-quiz. When the user selects an answer a group moves into view detailing wheter he or she answered correctly. This group slides into view from the bottom of the screen.
It works fine if I just move it, but then you notice that the clock which has to start counting down only starts after the move is completed. So, add the 'without waiting' to the code. Right? Unfortunately, the group doesn't display until after it has reached it's location, so it just jumps on screen after the 20 ticks it should have taken to slide on... and the clock only starts after the group is visible.
Code: Select all
move group "correct_grp" from 512,1100 to 512,384 in 20 ticks
Code: Select all
move group "correct_grp" from 512,1100 to 512,384 in 20 ticks without waiting
Anyone?