Build commands for Photo Annotation
In this Photo Annotation, when user clicks with mouse on the individual member in the photograph, the person introduces himself/herself with sound effects. To write commands for this project following steps should be followed:
1. Select the stage. Add background sound by selecting a sound from the scratch sound library.

2. Select stage only and add the following script to the script tab to play the background sound.

3. For Sprite2 introduction add the following script in the script area after selecting Sprite2.
4. For individual member’s introduction in the photograph click on Sprite1, find the x and y coordinate position (for each member) in which it belongs by bringing the mouse pointer on right, left, top and bottom position of the member (marked as red for first member)


5. Now add the following commands in the script area for first person. To write the commands we use three controls of sensing palette to get x and y co-ordinate for mouse and for mouse click also.
After giving introduction the first person sends back a message (using broadcast)
6. In the same way you can find coordinate for other individuals and write the same code.
7. Sprite2 also receives the message from each individual and respond accordingly by adding script to Sprite2.
8. Click on green flag sign to play Photo Annotation.
In this Photo Annotation, when user clicks with mouse on the individual member in the photograph, the person introduces himself/herself with sound effects. To write commands for this project following steps should be followed:
1. Select the stage. Add background sound by selecting a sound from the scratch sound library.
2. Select stage only and add the following script to the script tab to play the background sound.
3. For Sprite2 introduction add the following script in the script area after selecting Sprite2.
4. For individual member’s introduction in the photograph click on Sprite1, find the x and y coordinate position (for each member) in which it belongs by bringing the mouse pointer on right, left, top and bottom position of the member (marked as red for first member)
5. Now add the following commands in the script area for first person. To write the commands we use three controls of sensing palette to get x and y co-ordinate for mouse and for mouse click also.
After giving introduction the first person sends back a message (using broadcast)
6. In the same way you can find coordinate for other individuals and write the same code.
7. Sprite2 also receives the message from each individual and respond accordingly by adding script to Sprite2.
8. Click on green flag sign to play Photo Annotation.
No comments:
Post a Comment