HOME | DD

Computer-Turret — Battle Field

Published: 2006-10-01 17:11:23 +0000 UTC; Views: 416; Favourites: 0; Downloads: 2
Redirect to original
Description My longest flash animation ever. The only one i'm not imbarrased to show.
Related content
Comments: 13

Ninjapear [2009-09-30 20:49:45 +0000 UTC]

cool i luv stick men, im gona make a stickman fight game, im following you (=

👍: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-09-30 23:59:09 +0000 UTC]

This is an old animation of mine, I hardly do much animating anymore. Moved on to programming.
Thanks for the watch.

👍: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-02 03:19:45 +0000 UTC]

i luv flash as well but animation is so much funner!
i did all your rpg tuts when i was starting flash your codings good

👍: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-02 11:04:43 +0000 UTC]

Bad RPG tuts but they are good starting points I guess. Different things are for different people, just do what you love more.

👍: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-02 16:33:45 +0000 UTC]

!no do evreything! you cant just kill all the childs you dont luv more?, you can code better now right?

👍: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-02 18:49:37 +0000 UTC]

Yeah, a lot better. I've even moved on to AS3 now.

👍: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-02 23:10:02 +0000 UTC]

is it the same language is there still or is it diffrent )=

onClipEvent (enterFrame) {
if(this.hitTest(_root.somthing)){
[=
}
}

👍: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-03 00:40:36 +0000 UTC]

That is AS1, long outdated.
stage.addEventListener(Event.ENTER_FRAME,myFunction);
function myFunction(event:Event) {
if(wall.hitTestObject(ball)){
}
}
Would be AS3

AS2 would be
_root.onEnterframe=function(){
if(wall.hitTest(ball)){
}
}

etc, in a very simple example.

👍: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-03 01:29:41 +0000 UTC]

yea i get this so the top is as3 and bottom as2 right?

👍: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-03 01:47:16 +0000 UTC]

Yes.

👍: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-03 22:22:40 +0000 UTC]

cool! so if i wanted to apply code to a ball i could just put this on the frame instead?

onclipEvent(enterframe) {
if(_root.ball.hitTest(_root.wall) {
_root.txt = "would this work?"
}
}

as3

👍: 0 ⏩: 1

Computer-Turret In reply to Ninjapear [2009-10-03 22:54:50 +0000 UTC]

Err no, there is no onClipEvent in AS3 anymore and no code is put on movie clips. Same with the hitTest code, it's now hitTestObject or hitTestPoint.

👍: 0 ⏩: 1

Ninjapear In reply to Computer-Turret [2009-10-04 01:19:50 +0000 UTC]

0 :
i learned flash using a few tuts anylizing the code so that i can see what i does and than using it,
so think you could write me a hitTest in as3 to put on the frame so i can anylize it?

👍: 0 ⏩: 0