Be a Supporter!
Response to: Create Movie Clip Posted August 16th, 2005 in Game Development

At 8/16/05 08:19 PM, BobRicci wrote: Is there a way to create a movieclip "bullet" at the (x,y) position of another movieclip called "_root.hand.gun"?

Duplicated?
i=100;
_root.duplicateMovieClip("bullet", "bullet"+i, i);
//Original MC, new MC name, depth
_root["bullet"+i]._x= _root.hand.gun._x;
_root["bullet"+i]._y= _root.hand.gun._y;

Or created?

_root.createEmptyMovieClip("bullet", 100); //new MC name, depth
bullet._x= _root.hand.gun._x;
bullet._y= _root.hand.gun._y;

Response to: Actionscript Posted August 16th, 2005 in Game Development

At 8/16/05 06:25 PM, Inglor wrote: object.gotoAndSTop doesn't work with scenes

start counting frames from the start :-P

or use frame labels. I've NEVER used scenes, and I don't intend to.

Response to: Removing delays Posted August 16th, 2005 in Game Development

At 8/16/05 06:05 PM, JtR666 wrote: I also tried with the quality and it didn't work.

Have you tried what BobRicci suggested? Not tried it out myself, but Afro-Ninja also mentioned it in AS: Sound.

Response to: Actionscript Posted August 16th, 2005 in Game Development

At 8/16/05 06:12 PM, StibletIX wrote: how can i make it so when it hits end to go to frame 3 in the current scene?

_root.gotoAndStop("Scenename", 3);

Response to: actionscripted tweening Posted August 16th, 2005 in Game Development

onClipEvent(load){
sp=0; //start point
ep=300; //end point
ft=60; //frames taken
_x=sp;
}

onClipEvent(enterFrame){
if(_x<ep){
_x+=(ep-sp)/ft;
trace(_x);
}
}

Also, it's a lot more advanced, but BleeBlap wrote AS: Actionscripted Tweens yesterday, but I don't know how suitable that'll be for your needs.

Response to: Simple Actionscript Posted August 16th, 2005 in Game Development

Or if you have MX2004, you can customise it to your heart's content:
AS: SWF Right-Click Menu

Response to: Actionscript text Posted August 16th, 2005 in Game Development

At 8/16/05 05:15 PM, ElectricFreak wrote: I still get this error...

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: ')' or ',' expected
_root.createTextField ("TFInstanceName", 1, _x position, _y position, width, height);

Total ActionScript Errors: 1 Reported Errors: 1

Put some values in there instead of _x position, _y position, width, height, eg 0, 0, 300, 25

Response to: Actionscript text Posted August 16th, 2005 in Game Development

I have to use a lot of that for my API games. For Herd, I used all 26 letters of the alphabet - aTF to zTF. Problem is, you need different TextFormats for left, right, and center-aligned texts (I think, probably wrong), so you need 3 textFormats for each font style or colour.

Response to: Mouse Trail Posted August 16th, 2005 in Game Development

Use this to remove the duplicated MCs. Just put it on the first frame of each scene, or wherever.


for (LTR = 0; LTR<letters.length; LTR++) {
_root[LTR+"l"].removeMovieClip();
}

Response to: Actionscript text Posted August 16th, 2005 in Game Development

_root.createTextField ("TFInstanceName", 1, _x position, _y position, width, height);

aTF = new TextFormat();
with (aTF) {
color = 0xFFFFFF;
font = "Tahoma";
size = 18;
bold = 1;
align = "center";
}

TFInstanceName.text="PIE";
TFInstanceName.setTextFormat(aTF);

It's all in Flash's Actionscript Dictionary, look at M > MovieClip.createTextField

Response to: The Lets Motivate Each Other Thread Posted August 16th, 2005 in Game Development

I don't need motivation, I just need more hours in the day, and less distractions =)

Having said that, I had to take lengthy breaks in the process of making Overrun II. Fortunately these API games only take a week to a month to complete, which is a lot less taxing (though no less intensive).

Response to: A.d.d Posted August 16th, 2005 in Game Development

At 8/16/05 10:28 AM, snakedude wrote: I know this has nothing to do with flash

So why post it in the Flash forum? Either take it to General (but expect people to be nasty), or Google for some info/support groups.
I know for a fact that you're not the only one on NG with the syndrome, I've seen other users post about it in General.

Response to: Wi/Ht? level up! Lounge Posted August 16th, 2005 in Where is / How to?

Thanks for the congrats guys. I have a feeling that the other robot is going to be catching me before too long, though, since my BPing has taken a backseat to Flash recently.

I'll be popping back Sunday/Monday. In the meanwhile, congratulations to all the other rank/level-uppers and worthy achievers

Response to: The clock crew. Posted August 16th, 2005 in Game Development

At 8/16/05 06:32 AM, alby_p wrote: I'm gonna just stop comming here if there are just clock movies.

No-one will miss you.

The guys who make them are lame.

Actually, some of the clocks are amongst the best Flashers on NG. Not all of them, but then not all of general submitters are the bee's knees, either.
People who get all worked up about Clock movies should find themselves something else to get frustrated about. Tom condones the CC completely, so basically, learn to like them, or just ignore their movies. It's not as if their stuff is shoved in your face more than once a year, is it?

Response to: Drawing a Vagina? Posted August 16th, 2005 in Game Development

Apart from the fact that it's easy enough to find those kind of pictures, if anybody did actually post a picture of a vagina, cartoon or not, they would be banned on the spot. I suggest you read the BBS Rules before you suggest anything else stupid.

Response to: Help with a splash screen Posted August 15th, 2005 in Game Development

I'm too busy, but it might be an idea if you gave some details about the game and exactly what you want the splash to look like.

Response to: Clock Day? Wtf! Posted August 15th, 2005 in Game Development

At 8/15/05 06:36 PM, AppleT wrote: Alright this is going way too far! Clock day started off with like 50 clock submissions. Now THE WHOLE FRONT PAGE IS CLOCKS! This is just showing that people can spend a couple days putting some tweens and microsoft voices to some crappy plot and get good reviews. This has been going on for awhile and i think it should stop!

SHUT UP

It will stop tomorrow. When Clock Day is over. In the meanwhile, if you don't like it, then don't go to the Portal.

Sheesh

Response to: Lower than the red line Posted August 15th, 2005 in Game Development

At 8/15/05 06:27 PM, fwe wrote: Am i the only one who has no idea what you're talking about?

Nope, I'll join you in complete ignorance.

Response to: AS: Actionscripted Tweens Posted August 15th, 2005 in Game Development

Wow, I never knew this stuff existed. Could definitely be useful occasionally for pure API flashes. Definitely going in the Advanced section of AS: Main, though.

Response to: insanity outbreak Posted August 15th, 2005 in Game Development

At 8/15/05 06:18 PM, marsh1 wrote: Attention Mods: I know that i dont quite have a 3.00 batting average, but i have 4 movies scoring over 3, and i have run a collab before so i know how to run these (electric blue is my collab) so let this slide.

Sorry. We have enough collabs.

Response to: As Help Posted August 15th, 2005 in Game Development

onClipEvent (enterFrame) {
_root.line1._x = _root.circle._x;
_root.line1._y = _root.circle._y;
}

Response to: adding clock voices Posted August 15th, 2005 in Game Development

At 8/15/05 05:45 PM, 17Clock wrote: im not stupid!

Obviously too stupid to read the FLASH HELP FILES

Response to: ohhhhhhh Posted August 15th, 2005 in General

At 8/15/05 05:38 PM, hdnpwr745 wrote: ohhh, i didnt know it was clock day. thats interesting

How did you miss the two NEWS topics at the top of the forum page?

If you want to discuss it, use one of the existing threads.

Response to: R There Othr Ways To Get Exp On Ng? Posted August 15th, 2005 in General

No, apart from a few extra points you can get for signing up to emails and stuff when you first create an account, it's 10 a day max.

Response to: currentframe command help Posted August 15th, 2005 in Game Development

At 8/15/05 05:33 PM, MC3IG wrote: im wondering if anyone knows a way that i can use actionscript to tell flash that if the space bar is down then a certain MC will play but if that MC isnt finished playing then when you press the space bar nothing happens. like if you were playing a game that you walk around and shoot people but you cant shoot another bullet until youve finished shooting the first one.

if (bulletmcInstanceName._currentframe == bulletmcInstanceName._totalframes){
//shoot new bullet
}

Response to: As Help Posted August 15th, 2005 in Game Development

I just spotted, you have double underlines on two of the __roots. That's probably your problem.

onClipEvent (enterFrame) {
_root.line1._x = _root.line2._x;
_root.line1._y = _root.line2._y;
}

Response to: Teh Clock Crew... Posted August 15th, 2005 in General

At 8/15/05 04:55 PM, Eternal_Happy_Dragon wrote: I'm not ignorant, I just try to forget their existance/shitty flash...

If you're attempting to forget their existence, making a topic about them is not exactly headin down the right path.

I wish people would stop whinging.

Response to: Clock Day Update Posted August 15th, 2005 in NG News

At 8/15/05 04:22 PM, deck_head_clock wrote: j00 r teh 1337!

Haha, how cool is that for Clock Day?