would that be possible in Lassie, to have a numerical counter represented graphically?
All hail the mighty power of sprite phases.
fatbuoy1- 09-24-2007
You and your riddles Greg... ;)
So are you saying have a wall sprite that has 100 or so phases, and each new day just move it on to the next one?
SeanCyrusTowel- 09-24-2007
LOL... that's a brilliant idea.... why didn't we think of that ;-)... then you could actually have the lines in the background instead of a sprite changing them :-)
bigmac- 09-24-2007
Oh... I wasn't picturing anything of that volume (as in, 100). For something like that, having a phase for each would be excessive. In that case, use "setPhaseAttribute" and modify the frame property. That way you can use one phase, but just keep changing its graphic for which –yes– you would have 100 frame in the SWF movie.
Shofixti- 09-25-2007
That translates to:
Making a SWF with 100 frames, and a stop action
each frame is the next day, and wherever you call the "next day" TiME yoou would use the etPhaseAttribute command
through that you would increase the frame by 1, and thus mark time.
bigmac- 09-25-2007
yep... makes perfect sense. Also, think about using the "variables" node of game data to store the value so that the current day will be stored with a save game.
Oh, and be aware that if you should accidentally call the method too many times and so request a numeric index beyond the number of frames in the counter clip, the movie will revert to frame 1. So, I'd do this...
_root.TIMe.nextDay = function() {
if (_root.gamedata.variables.dayNum == undefined) {
_root.gamedata.variables.dayNum = 1;
}
var n:Number = _root.gamedata.variables.dayNum++;
var counter:MovieClip = _root.room.day_counter;
var t:Number = counter._totalframes;
counter.gotoAndStop(n<t ? n : t);
}
Nice, clean and simple...
> Create the variable if it doesn't exist
> Increment its value
> Go to that frame of the counter clip if possible
> Otherwise, restrict the clip to the last frame of its timeline.
fatbuoy1- 09-25-2007
Um... Great thanks! Wont need to do it for a brave while but this will help when the time comes :D
fatbuoy1- 02-24-2008
Hey, does anyone know of any films or anything that show what it was like in British Prisons during the 1940s? Im trying to find out what the guards/prisoners wore, what was the standard daily routine, etc... any ideas?
NigeC- 02-25-2008
do some research on Wormwood Scrubs prison, a lot of people went there because they refused to go to war
i can imagine it would of been a harsh place, Darlington where i live had an active workhouse up intil 1934 :s
most of the filmsd i can think of stem around the 1960's & 70's.. the most rememberable being McVicar
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.