ubi.com    Forums  Hop To Forum Categories  Far Cry  Hop To Forums  Far Cry Off Topic Discussion    Flash Action Script Help
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
Spud
Posted
If any of you guys on the forum know somthing about action script, I coudld use some help.

I am tryin to use a variable to show the players score when he clicks on a target.

I can get the score to move up in points and all, but I cant make it so when it reaches a certain number to make it do somthing.

What I did :

The button named "target" has the script:

on (release) {
_root.myScore += 1;
}

Now i have a dynamic text field with the var. name myScore

everything from here works fine the targets clicked add 1 point to the score.

Here is my problem though...I added this script to frame 1 on the main timeline:

if (myScore >= 10) {
gotoAndStop(2);
}

I thought that would work, but I am new to action script so if any of you guys know how to make this work, please reply. Smile
 
Posts: 511 | Registered: Mon July 21 2003Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

ubi.com    Forums  Hop To Forum Categories  Far Cry  Hop To Forums  Far Cry Off Topic Discussion    Flash Action Script Help

Terms of Use

Privacy Policy