PDA

View Full Version : Score Reconizing



wes321
February 7th, 2003, 11:30 AM
Hi i have flash 5 and im making a game for a project where u collect polygons and every time you get one it adds 1 to the score. I tried so many different things but it does work. I want to make it so when the score is 7 it will go to scene 2.
This is the script that i have

onClipEvent (load) {
if (_root.score == 1) {
_root.gotoAndStop(2);
}
}


that doesnt work can u post one that will work tnkz


wes

if you want to check out my site go ahead

http://wml321.tripod.com/w/WebsiteNEW.swf

Uli
February 7th, 2003, 11:42 AM
scene 2 or frame 2?

__FLATLINE__
February 7th, 2003, 12:40 PM
Simple, just change this line:
onClipEvent (load) {

To this line:
onClipEvent (enterframe) {

This way the script will be executed every time a frame is played, instead of just once upon loading the movieclip.