feedback by text

Introduction
While creating exercises an important issue is to give feedback to the user. You can do this by a text that's only shown when the answer is right. Following applet shows a easy example. The user has to drag a point to a given position. If the position is right, the text [i]Correct![/i] appears.[br]When clicking on the restart icon a new exercise is generated.
How do you do this?
[list][*][b]Point with random coordinates[/b]: Create:[br][code]a = RandomBetween(-4, 4)[br]b = RandomBetween(-4, 4)[br]P = (a, b)[/code][/*][*][b]Point to drag[/b]: Create a point A beyond the range of P[br][code]A = (-8, 1)[/code] [br]Rightclick on the point, open the Properties of A ans select the tab [i]Basic[/i].[br]Type [i]P[/i] in the textfield Caption.[/*][*][b]Exercise[/b]: Create a dynamic text showing the exercise. Select [i]P[/i] in the tab Objects.[/*][*][b]Feedback[/b]: [br]- Create a text Correct![br]- Open its Properties and select the tab [i]Advanced[/i].[br]- Type in the Condition to show the Object: [code]A = P[/code] and Enter.[/*][*][b]New exercise[/b]:[br]- Online you can show the icon to restart the applet. a and b will be recalculated.[br]- Offline you can insert a button to do this (see chapter 8).[br][br][/*][/list]

Information: feedback by text