lisa
New Member
Posts: 3
|
Post by lisa on May 8, 2020 7:04:23 GMT
Hello everyone, within my experiment I have created an animation as shown with the cross in the tutorial and it works quite well and looks nice I need to repeat it multiple times. For that I just created a task list that repeats the animation task, so that it comes out like a gif. I just have a small problem with it now: between the individual animation tasks, for a tiny fraction of a second, neither the last bitmap of the previous task nor the first of the upcoming task is shown. This results in a "flash" in the middle of the animation and makes it look a bit less smooth. At first I though the problem is that the background is loaded a bit faster than the bitmap, but even with loading them at the same time (draw off/on) I still see a little flash. I would be very grateful for some ideas of how I could fix that! Thanks in advance, Lisa P.s. I love this tool and how easy it makes programming. It took me one day to create an experiment that I had worked on several weeks in another software. Thank you so much for creating this Prof. Stoet!
|
|
|
Post by matia on May 8, 2020 7:41:40 GMT
Dear Lisa, I have tried to set up what you describe (I used the code from the endo-exo attention cueing which features fix-points animation made up from 4 images of cross getting bigger and bigger). The code goes as following (I have cut stuff before and after this part of the code): task exogenous keys kp5 kp4 kp8 kp6 kp2 ############################################## show bitmap fixpoint1 delay 150 show bitmap fixpoint2 delay 150 show bitmap fixpoint3 delay 150 show bitmap fixpoint4 delay 150 I thought the problem could be that the animation is maybe different in each frame (the center of the cross, however big it is is featured in the same position so the flash is maybe masked by this) so I used different bitmaps: task endogenous keys kp5 kp4 kp8 kp6 kp2 ############################################## show bitmap press5 delay 150 show bitmap happy delay 150 show bitmap sad delay 150 show bitmap fixpoint4 delay 150 and got the same result: I did not see a flash, that is all of the pictures ran smoothly one over another. However, since the press5 was the biggest image I noticed that I did not clear it and then I tried to clear it thinking maybe this caused a flash. Even after clearing it, the images ran smoothly... I tried changing the resolution of the experiment - still good. I am viewing the experiment from the Mozilla browser and my screen resolution is 1920x1080 (if this could in any way be related with the problem). Also, maybe the images are too large to be quickly screened by the Psytoolkit (I tried to replicate Your problem by using small fixpoints and smiley faces). Prof. Stoet will definitively provide You with the better answer (I am also a beginner in this and had some difficulties of my own) but maybe this will also help You a bit Best, Matia
|
|
|
Post by PsyToolkit on May 8, 2020 9:33:38 GMT
Lisa, can you please send me your experiment to psytoolkit@gmx.com?
|
|
lisa
New Member
Posts: 3
|
Post by lisa on May 8, 2020 12:22:35 GMT
Thank you both so much for your help! I found the mistake - I had created the commands with a bit of code (since there are so many frames) and naturally forgot to delete the command to clear the last image in the loop. So at the end of each task, the last image got cleared before the task was over which resulted in a flash. Next time I'll make sure to provide some code, I realize this example-less description of the issue makes it hard to help.
|
|