Step 5 : Introduce a counter:
The next step is to start a counter to check when you have hit the target and when you have missed the target. In your main scene draw a textfield using the textbox icon, and name it `total`. This will then be the running total of the hits on the object. Back in the target movie clip add this code on what we have already done.
On (Release) Begin Tell Target ("../total") Set Variable: "total" = total + 1 End Tell Target End OnNow each time you click on the object the total will increase by 1 each time.
The code for the target movie should now look like:
|» Level Intermediate|
Rating: 8 Votes: 51
|No details available.|
|Download the files used in this tutorial.|
|Download (650 kb)|
|More help? Search our boards for quick answers!|