-
Im trying to make a game where you get points for hitting targets. What i need to know is how to do the actionscripting for adding points to the score (which will be in a dynamic text box)
an example or the code would be very helpful!
-
you can create a textfield and give it a name, for exemple "Display". But you can replace textfiled by a variable who is named in a frame
your target has to be a button
the actionscript is very easy
wirte in action :
on (release) {
display = display + 10;
}
with this script, your new points will be added to the total of your points.
i hope that's can help you
sorry for my bad english...i'm french...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|