| 1. |
Add a new animation |
 |
| 2. |
Click on Events Panel to expand (Bottom
Left) |
 |
| 3. |
Double click OnLeftClick section which will
bring action script editor |
 |
| 4. |
Add new action Logical Operation > If..Then |
 |
| 5. |
On the expression parameter
enter <%Current_Mouse_Y%>-<%current_top%>
< 35
It means if the mouse position is 0..34 than
user just click the head of your character.
»
Current_Mouse_Y is global variable which
give you current mouse position on screen.
» Current_top
is global variable which give you current
screenmates location on screen. »
35 is the head height of your character
in pixel. |
 |
| 6. |
Click Apply |
 |
| 7. |
Add new action Basic Action > Show Text |
 |
| 8. |
Put "You just clicking my head" |
 |
| 9. |
Click Apply |
 |
| 10. |
Add New action Logical Operation > End If |
 |
| 11. |
Click OK to save your script. |
 |
| 12. |
Run the screenmates and click the head of
the screenmates. |