|
Post by Hyewon on Jul 13, 2020 16:48:15 GMT
Hi,
I am trying to do a similar thing to the example code involving prince, princess and frog on Psytoolkit. When I run the code below, all bitmaps are assigned the same number. What could I have done wrong?
task F
show video clip1 0 0 700 700
delay 5200
clear -1
show bitmap F -150 -150
show bitmap TH 150 -150
show bitmap SH -150 150
show bitmap S 150 150
readmouse l 2 5000
set $number_of_bitmap bitmap-under-mouse MOUSE_X MOUSE_Y
save TASKNAME RT $number_of_bitmap
Thanks in advance!
|
|
|
Post by alexandra (AEC) on Jul 14, 2020 9:39:54 GMT
Hi there,
what number is saved each time? Is it 1? Try to add "range to your code.
readmouse l 2 5000 range [insert first bitmap number to read] [insert last bitmap number to read]
set $number_of_bitmap bitmap-under-mouse MOUSE_X MOUSE_Y range [insert first bitmap number to read] [insert last bitmap number to read]
Sometimes this solves this kind of problem.
|
|