At 12/27/04 02:06 PM, Tennessee_6 wrote:
babble babble babble...
Tennesse, I think the hardest part of what you're asking is understanding your syntax (why so many of you who have English as your first language do write like that?). You're not asking for anything "advanced".
-a var or an object (PlayerItems.HealthPacks...) for the health pack, that's damn easy. Simple assignments. Make another for history of health pack using, adding even the time of using (getTimer) and the number of enemies in screen, if you want.
-raising the "background"'s (the things seen by the player) xscale and yscale to make it bigger; make a mc in green, copy it below itself and set the copy as a mask, then have the mask mc and green alphaed mc (over it) follow the mouse, which is something that must have been answered about 10^(100^1000) times. Look for the magnifying glass in flashkit and the MovieClip.setMask method.
But Inglor, I've a couple of questions for you...
a) By some unknown reason, none of the many scripts I've tried is able to recognize the cursor key combinations of Up+Down+Left and Up+Right+Left (&all four keys), while all other combos work OK. Seems more... a memory or CPU issue??? Whatever, but neither ifs nor Booleans nor some other more bizarre routines, with or without listeners, do work for this. Is there any kind of limit to how many keys may be pressed altogether, or any workaround you do know?
b) Flash (MX, at least) cannot use text as mask, nor static nor dynamic. Right now, my workaround is to type all the letters in a MC (a frame for each), break them, make an empty movieclip in which I AS-put that "Alphabet_mc" letter by letter (selecting the frames according to the string), and have that "all-letter" MC work as mask. Also, since I use things like àèéíòóúïü (and their caps), I have to check the stresses and put them over the stressed letter. My zyx! Can you think of any other, more efficient, workaround?