flash game help!
- Started
- Last post
- 4 Responses
- ********
need some help, how can i let flash know that all the right errors in the picture where discovered, its a spot the differnces game, there is 5 to spot can i add values to an invisible field and when they add up to 5 got to a win scence, i understand actionscript very well, just not so hot at writeing it.....or spelling...check the game here http://www.dekodedesign.com/leveā¦
- Mick0
simply start a counter
score=0;on release of each difference that is found score++;
Also on each button call a function that checks if the score == 5 - if it does, do something (goto frame X or whatever)
- ********0
u got any example, i think i can manage but calling a function am not to familiar with
- Mick0
You don't have to do a function - its just more efficient that way because you won't have to put this code on each button (or you could call the action from another frame but that will confuse you).
Do this onRelease for each button instead...
if (score==5){
gotoAndPlay("win")
}make sure you put it AFTER where you add to the score.
- ********0
i get it now, thanks mick