PDA

View Full Version : Collect items upon completion of certain tasks


Akshon Scrapped
02-17-2005, 04:47 PM
i have created a cd rom using flash. it has three different game type areas.

what i want to achieve is a menu bar at the top with three greyed out symbols. when each game task is completed you are given one of the three symbols and one of the greyed out symbols in the menu bar is lit up. upon completion of all three games and having lit all three symbols i would like the user to be able to access a congratulations screen.

only thing is i dont have clue how to do this through actionscript. can anyone help me get started on this idea? im a little worried because its for a university project and my time is running out. ive tried everything and all to no avail!

please help!

:confused:

Akshon Scrapped
02-21-2005, 10:45 AM
any one help me here?

Clox
02-21-2005, 01:01 PM
uhm..
can u program games but cant do that thing?

cuz its quite simple..


well, u could do something like..
the 3 symbols are 3 mc's. with 2 frames in each. and when one game has been beaten, u make a certain symbol go to frame 2.
_root.symbol1.gotoAndStop(2);
something like that.
and also, when it does that, it checks if the other ones are lit.


_root.symbol1.gotoAndStop(2);
if (_root.symbol1._currentframe==2 && _root.symbol2._currentframe==2 && _root.symbol1._currentframe==2) {
_root.gotoAndStop(2);
}


and then it takes the _root to frame 2, which could be a congratulations screen or something..

well, thats just an idea.
its hard to give any good suggestions without knowing anything about how ur game is built up or anything..

Total Frigging
02-24-2005, 06:33 PM
ahh the games arent too hard to do... you could hardly call em games!

just wondering if this will work over different scenes? gonna try it now but probably wont get it workin...

cheers by the by clox

this is my new alias by the way

Total Frigging
02-24-2005, 07:05 PM
k. just tried the code above and to no avail. the games are nestled within different scenes. when the user collects an item after completing a game i need a mc to activate. now i need this mc to stay activated whilst the user navigates through the other scenes. then when they complete another game another mc is activated. i need this to happen until the user completes all three games and activates all the mcs. then i would like them to progress to the congrats screen.

any help with this predicament?

Total Frigging
02-25-2005, 12:19 PM
help? anyone? please?