The code is simple. It hides the dialogue box, shows the image at a set position, then it floats off the screen.
I am running into two issues, but this first one seems to be a bug. If I do not add the "with dissolve", or some other "with" property... It shows the image at the bottom of the screen, instead of at the set "ypos". Which also indicates that it is not obeying the "yanchor", and I assume, any of the other positioning values.)
This fails to display the image at the correct location.
Code: Select all
label gain():
$ points += 1
window hide
show _points_gain at Position(xpos = 0.5, xanchor=0.5, ypos=0.20, yanchor=0.5)
show _points_gain with hpunch
pause(0.1)
hide _points_gain with moveouttop
return
Code: Select all
label gain():
$ points += 1
window hide
show _points_gain at Position(xpos = 0.5, xanchor=0.5, ypos=0.20, yanchor=0.5) with dissolve
show _points_gain with hpunch
pause(0.1)
hide _points_gain with moveouttop
return
How can I suppress "click to continue", until the "hide xxx with moveouttop" has completed? (Or until the total have shown on the screen, for xxxx amount of time.)
I can sort-of see why the first set of code MIGHT fail... (There is a SHOW followed by another SHOW. However, it should be positioning the image first, then simply doing the second animation, once it is displayed at that location. There was two individual animations, which caused it to display correctly. Removing one, should not change anything. However, I am going to resolve this by moving that second SHOW WITH, up to the prior POSITION command.)
EG, Just noting this as an odd "bug" of sorts. The failing of the POSITION, without a WITH, in this code case.
Also, this "hpunch" shakes the whole screen... How do I make it shake just the image? (Or is that another bug?)