00:00
00:00
Newgrounds Background Image Theme

Morpheon just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

++ As Wars 2007

24,656 Views | 502 Replies
New Topic Respond to this Topic

Response to ++ As Wars 2007 2007-01-03 14:38:05


At 1/3/07 02:30 PM, Jindo wrote: - we don't just have to use the 'if (count == x) {' to use options (so we can use things like if (life <= x) {).

I think your editing the testBot :P. Also, i have a question about the design. You said we have to have a 30x30 square design, but could we add a invisible 30x30 square on a layer, then use circles on top of it? Or is that not allowed?

Anyway, I'm getting the hang of it now :D.


BBS Signature

Response to ++ As Wars 2007 2007-01-03 14:38:18


How exactly do I use the liveBots array? I try to trace the _x of the testbot but it doesn't work.
Isn't it trace(_root.livebots[0]._x); ?

Response to ++ As Wars 2007 2007-01-03 14:39:55


At 1/3/07 02:38 PM, rrx88 wrote: How exactly do I use the liveBots array? I try to trace the _x of the testbot but it doesn't work.
Isn't it trace(_root.livebots[0]._x); ?

trace(_root.liveBots[0]._x);


*User Page under construction*

BBS Signature

Response to ++ As Wars 2007 2007-01-03 14:40:15


At 1/3/07 02:38 PM, Depredation wrote: I think your editing the testBot :P.

*looks*, well what d'ya know :D, I'm silly >_<.

Okay, so everything should work out if I use my bot instead of the test XD.

Thanks for that :).

Response to ++ As Wars 2007 2007-01-03 14:42:13


At 1/3/07 02:39 PM, JD77 wrote:
At 1/3/07 02:38 PM, rrx88 wrote: How exactly do I use the liveBots array? I try to trace the _x of the testbot but it doesn't work.
Isn't it trace(_root.livebots[0]._x); ?
trace(_root.liveBots[0]._x);

Nope, "undefined"...

Response to ++ As Wars 2007 2007-01-03 14:46:46


Alright, I finished.
Wish I could spend more time on it but I'm goin to Disneyland tomarrow and I've still got a lot of homework to do :(
This was fun to make, although it sucks, looking forward very much to the battles, good luck to all, except for AB, he's goin down.

Response to ++ As Wars 2007 2007-01-03 14:56:33


At 1/3/07 02:42 PM, rrx88 wrote:
At 1/3/07 02:39 PM, JD77 wrote:
At 1/3/07 02:38 PM, rrx88 wrote: How exactly do I use the liveBots array? I try to trace the _x of the testbot but it doesn't work.
Isn't it trace(_root.livebots[0]._x); ?
trace(_root.liveBots[0]._x);
Nope, "undefined"...

sorry didn't noticed the ._x,

trace(_root[_root.liveBots[0]]._x);

There u go.


*User Page under construction*

BBS Signature

Response to ++ As Wars 2007 2007-01-03 14:57:06


At 1/3/07 02:39 PM, JD77 wrote: trace(_root.liveBots[0]._x);

It's on the root level, so:

trace(_root[_root.liveBots[0]]._x);

Response to ++ As Wars 2007 2007-01-03 14:58:44


This is cool. I wish I could participate, I suck at AS...


:U

Response to ++ As Wars 2007 2007-01-03 15:06:44


trace(_root[_root.liveBots[0]]._x);

There u go.

Thanks! I never been good with arrays in flash ^^

Response to ++ As Wars 2007 2007-01-03 15:09:55


At 1/3/07 03:06 PM, rrx88 wrote:
trace(_root[_root.liveBots[0]]._x);

There u go.
Thanks! I never been good with arrays in flash ^^

Not a problem. The point of this as wars is to share and learn how to work with arrays and movieclips on the stage. A lot of people don't really understand the method of hittesting multiple objects, so this is a good exercise for detecting multiple bullets, mines, and enemies on the stage.

And for people drawing their bot, you can have several layers, just keep it to 30x30. Any smaller or larger will result in an unfair hitTest advantage/disadvantage.


Hi there!

BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:13:56


At 1/3/07 03:09 PM, jmtb02 wrote: And for people drawing their bot, you can have several layers, just keep it to 30x30. Any smaller or larger will result in an unfair hitTest advantage/disadvantage.

Can't we just have a _visible = false MC or area of low-alpha inside the clip, and put a mini-logo inside it? :P


BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:15:06


At 1/3/07 03:09 PM, jmtb02 wrote: A lot of people don't really understand the method of hittesting multiple objects, so this is a good exercise for detecting multiple bullets, mines, and enemies on the stage.

I could think of a few methods, but yeah this is actually giving me a better understanding :)!

Response to ++ As Wars 2007 2007-01-03 15:24:17


Aw man, wish I could budget the time for this. Unfortunately, I'm poor as dirt.


BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:25:26


At 1/3/07 03:24 PM, NegativeONE wrote: Aw man, wish I could budget the time for this. Unfortunately, I'm poor as dirt.

Poor people have plenty of time :P Just look at the homeless!


BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:32:22


At 1/3/07 03:13 PM, Paranoia wrote: Can't we just have a _visible = false MC or area of low-alpha inside the clip, and put a mini-logo inside it? :P

Whatever floats your boat. Just making sure it fits exactly 30x30. No masking shit or anything, and make sure that your registration point is in the exact center of the clip.

The deadline is being extended over the weekend to fit people's schedules. Make sure you TRY to get it in by Friday though.


Hi there!

BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:32:57


At 1/3/07 03:25 PM, Paranoia wrote: Poor people have plenty of time :P Just look at the homeless!

The homeless are the busiest people in the world, youuu jerk. You think the gutters wander themselves >: [


BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:34:05


can i reference an enemies option variable?


*User Page under construction*

BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:38:01


Sure. Go ahead and see what your enemies are doing.

if(_root.enemyName.option == 4) {
}


Hi there!

BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:43:23


At 1/3/07 03:38 PM, jmtb02 wrote: Sure. Go ahead and see what your enemies are doing.

if(_root.enemyName.option == 4) {
}

Whats with the crappy sample? lol I know my actionscript ;P


*User Page under construction*

BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:44:40


Does look like fun. I'll see if I can spare some time to throw something together. I doubt I'll have enough time to make it very smart though, if I even finish it.


- - Flash - Music - Images - -

BBS Signature

Response to ++ As Wars 2007 2007-01-03 15:52:20


GARGH! I just spent the last hour trying to work out why my for loop decides to stop working after 2 frames. I just copied and pasted my code into the origial file, and nw suddenly it works again. I must've accidently deleted some of the untouchable code or something.

Response to ++ As Wars 2007 2007-01-03 16:07:41


my bot will pwn yours with as godliness

lol

joking - I'll do it but i don't expect to win.

Response to ++ As Wars 2007 2007-01-03 16:25:56


I'm kinda done with mine, didn't came out as good as i expected but its pretty good. Do we have to wait 3 days? thats kinda long.


*User Page under construction*

BBS Signature

Response to ++ As Wars 2007 2007-01-03 16:34:21


Don't slack. I'm entering.


BBS Signature

Response to ++ As Wars 2007 2007-01-03 16:37:03


I'll see if I can find some time before friday to make a death machine.


Writer @ www.Johnrickett.com

Response to ++ As Wars 2007 2007-01-03 16:50:20


What do u think of my BOX?

Long time since I used Paint =D

++ As Wars 2007


*User Page under construction*

BBS Signature

Response to ++ As Wars 2007 2007-01-03 17:21:25


I'm in, for sure :D (been waiting a long time since NCs one).

Also, can I change rotation of my box in 4 directions, for movement? Just for looking good :), wont make any real difference.


BBS Signature

Response to ++ As Wars 2007 2007-01-03 18:03:41


If I get this little peepee done properly, I might even be able to get myself to host a next contest. :D

Damn it was tricky to get everything in 30x30 pixels. autowinplz

++ As Wars 2007


BBS Signature

Response to ++ As Wars 2007 2007-01-03 18:07:21


At 1/3/07 05:21 PM, Claxor wrote: Also, can I change rotation of my box in 4 directions, for movement? Just for looking good :), wont make any real difference.

No, because the bounding box of the box turns to fit a new dimension for hitTest, as seen below.

++ As Wars 2007


Hi there!

BBS Signature