I’m trying to have users place vertices of a rectangle. When the verticies are in the correct location, the line segments of the rectangle should show indicating they are correct. For some reason all the variables are set correctly, but the lines don’t show. I have commented out my showline variable to show the problem. The lines work until the vertices are in place, then the lines go away.
Aha! I have found out the culprit that was causing the rectangle to not appear.
number(`x_{min}`): when check 1 otherwise -4
number(`x_{max}`): when check 1 otherwise 0
number(`y_{min}`): when check 1 otherwise 0
number(`y_{max}`): when check 1 otherwise 3
Each line here sets ALL the rectangle borders to 1
when the student has the correct answer (when check
), causing it obviously to not appear. Deleting these lines will fix the problem.
I also tried expression('s_{howline}')
, but it wasn’t actually the problem (I thought using number()
wasn’t updating the value of showline
)
In case you just want the bug fix implemented, you can just copy this:
Thanks. I see it now. I’m not sure how I managed to put that code there the otherwise should always be true Showline was the only one I wanted to have changed with check.
Actually, I do, I copied/pasted and then forgot to make the change I needed.
Okay! Good to hear it.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.