show_if doesn't seem to be working with the figures in the sketchpad (maybe bug?)
Hi!
I'm doing the intermediate tutorial, and I've noticed that the rect and circle in the sketchpad never disappear. I attach the code that it's autogenerated. I put both rect and circle side to side and they both always appear.
I also tried changing the show_if = "never"
or show_if = "0"
, or show_if = "banana"
to see if they produce any effect on the images, but they are always there.
Maybe it's a bug?
(I'm using opensesame (3.2.1+b1-1) in Ubuntu 16.04.)
set start_response_interval no
set duration keypress
set description "A sketchpad containing the instructions for the participant"
draw textline center=1 color=white font_bold=no font_family=mono font_italic=no font_size=18 html=yes show_if=always text="INSTRUCTIONS<br /><br />Search for the [target_color] [target_shape]<br /><br /><br /><br /><br /><br /><br />Press the right-arrow key if you find it<br />Press the left-arrow key if you don't<br /><br />Press any key to begin<br />" x=0 y=-32 z_index=0
draw circle color="[target_color]" fill=1 penwidth=1 r=32 show_if="[target_shape] = circle" x=-64 y=-64 z_index=0
draw rect color="[target_color]" fill=1 h=64 penwidth=1 show_if="[target_shape] = square" w=64 x=64.0 y=-64.0 z_index=0
Comments
Hi Bruno,
That was indeed a bug, but it's resolved in 3.2.2, which should have landed in the Ubuntu PPA earlier today .
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!