Llama Lord
April 14th, 2003, 10:15 AM
I'm trying to create a game for a class project, using Flash MX. Unfortunatly, I am unable to figure out how to goto a new scene when the score reaches a certain number.
The ActionScript for it is...:
//hit
_root.total = _root.total + 100
//miss
_root.total = _root.total - 50
I've tried...
--------------------------------------
if (_target.score >= "100"
gotoAndStop("Scene 2, "1")
}else (_target.score <= "-100"
gotoAndStop("Scene 2, "2")
---------------------------------------
if (this.score >= "100"
gotoAndStop("Scene 2, "1")
}else (this.score <= "-100"
gotoAndStop("Scene 2, "2")
--------------------------------------
if (score >= "100"
gotoAndStop("Scene 2, "1")
}else (score <= "-100"
gotoAndStop("Scene 2, "2")
--------------------------------------
I've even tried using ""'s around 'score' and other things, but still no luck. I still havn't figured out the stupid timer either...
If anyone can give some advice, I'd apreciate it greatly!
Thanks
The ActionScript for it is...:
//hit
_root.total = _root.total + 100
//miss
_root.total = _root.total - 50
I've tried...
--------------------------------------
if (_target.score >= "100"
gotoAndStop("Scene 2, "1")
}else (_target.score <= "-100"
gotoAndStop("Scene 2, "2")
---------------------------------------
if (this.score >= "100"
gotoAndStop("Scene 2, "1")
}else (this.score <= "-100"
gotoAndStop("Scene 2, "2")
--------------------------------------
if (score >= "100"
gotoAndStop("Scene 2, "1")
}else (score <= "-100"
gotoAndStop("Scene 2, "2")
--------------------------------------
I've even tried using ""'s around 'score' and other things, but still no luck. I still havn't figured out the stupid timer either...
If anyone can give some advice, I'd apreciate it greatly!
Thanks