Home  | Login  | Register  | Help  | Play 

How to Make A Movieclip In Flash 8

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> How to Make A Movieclip In Flash 8
Forum Login
Message << Older Topic   Newer Topic >>
5/15/2009 20:13:42   
~JW~
Member
 

how Can i Make A Movie Clip In Flash 8.

< Message edited by ~JW~ -- 5/15/2009 20:23:08 >
Post #: 1
5/15/2009 20:49:06   
MegaPoster404
Member

press F8 of right click -> convert to symbol
DF MQ  Post #: 2
5/15/2009 20:51:29   
_Arctos_
Member

Or the longer way ... Modify > New Symbol > Movieclip > Name it what you like.

< Message edited by _Arctos_ -- 5/16/2009 3:07:57 >
Post #: 3
5/15/2009 21:01:57   
Davosaur
Member
 

select the thing you want to make a movieclip press F8 , name and press enter
Post #: 4
5/15/2009 21:04:02   
~JW~
Member
 

Once Ive Done That, How Do I Add Code To It. Im Following this tut:
http://www.dreamincode.net/code/snippet146.htm

Post #: 5
5/15/2009 21:07:38   
Davosaur
Member
 

select the MC and press F9
Post #: 6
5/15/2009 21:15:37   
~JW~
Member
 

quote:

//place this code on the bullet
onClipEvent (load) {
this._visible = 0;
if (_root.fire == 1) {
this._x = _root.cannon._x;
this._y = _root.cannon._y;
}
}
onClipEvent (enterFrame) {
if (this != _level0.bullet) {
if (_root.fire == 1) {
this._y -= 5;
this._visible = 1;
}
if (this._y<0) {
this.removeMovieClip();
}
}
}
//place this code on the cannon
on (release) {
_root.fire = 1;
_root.i += 1;
duplicateMovieClip(_root.bullet, "bullet"+i, i);
}
//place this code on "Base"
//this clip is used to turn
//the cursur into the cannon
onClipEvent (load) {
this._visible = 0;
Mouse.hide();
}
onClipEvent (enterFrame) {
_root.cannon._x = _root._xmouse;
_root.cannon._y = _root._ymouse;
}

^^Thats The Code Im Using.
Whats Wrong With It? It Says It Has Errors. Its From This tut:
http://www.dreamincode.net/code/snippet146.htm
Post #: 7
5/15/2009 21:20:21   
Vampire and Human
Member

What does it say the errors are? ATM I'm too lazy to look at the codes :p
AQ  Post #: 8
5/15/2009 21:30:53   
~JW~
Member
 

Errors Are Fixed, But When I Add The Code, And Click Ctrl And Enter, It Doesnt Do Anything.
Post #: 9
5/16/2009 3:09:12   
_Arctos_
Member

Missed out some code? Maybe or it depends if you're on an AS3 file, if so and you're using an AS2 code, it usually doesn't work.
Post #: 10
5/16/2009 10:58:01   
~JW~
Member
 

OK. Lastly, Whats The Code For A Dude Walking Across With The QArrow Keys?
Post #: 11
5/16/2009 17:12:26   
MegaPoster404
Member

onClipEvent(enterFrame){
if(Key.isDown(Key.LEFT)){
this._x = this._x - 10
}
if(Key.isDown(Key.RIGHT)){
this._x = this._x + 10
}
}

if the controls are reversed, switch the code in the if() peramiters
DF MQ  Post #: 12
5/16/2009 18:01:20   
~JW~
Member
 

What About To Stop At One Point In The Middle.
Post #: 13
5/16/2009 19:36:11   
EragonZZZZ
Member

Not to be obnoxious, but I hope you're not just copy-pasting this code...

< Message edited by EragonZZZZ -- 5/16/2009 20:15:09 >
AQ  Post #: 14
5/17/2009 11:19:45   
~JW~
Member
 

No. Why. Im Remembering It.
Post #: 15
5/17/2009 17:40:01   
EragonZZZZ
Member

As long as you understand how it works!

=D
AQ  Post #: 16
5/17/2009 19:12:49   
flsg
Member

eragon's doing a fine job preserving the coding spirit XD
also, I thought putting codes directly on a mc doesnt work in flash 8?
(rusty)
AQ  Post #: 17
5/17/2009 19:21:08   
~JW~
Member
 

It Does.
http://megaswf.com/view/71defeda2ae2d2c36f16ca701d7b93e5.html
See What I Can make Now. :D
Post #: 18
5/17/2009 19:49:52   
EragonZZZZ
Member

Huh. Nice one.

If the ball nails the paddle on a corner, it can sometimes go through the paddle.


Collision detection works nicely, though, especially for how fast the ball is going. Are you using hitTest()? I'd love to know what you're doing to compensate for the rapid movement of the ball (seeing as that was one of the problems I hit when I started coding stuff xD)
AQ  Post #: 19
5/17/2009 19:52:39   
darksideofthefarm
Member

Nice game but, if you click the mouse button, the ball flies up, so basiclly just keep hitting it to win lol, also if the ball hits a corner somtimes it goes out of the boundries. Otherwise its a great use of coding. Very nice
AQ DF MQ  Post #: 20
5/17/2009 19:53:16   
~JW~
Member
 

Whats hitTest()? Could You Explain How To Do It? Also, Its One Of My Best Ever Art Stuff Lol. Anyone Interested In A Join t Gallery?

< Message edited by ~JW~ -- 5/17/2009 19:54:02 >
Post #: 21
5/17/2009 19:57:03   
EragonZZZZ
Member

Um, if you're not using hitTest(), what are you using for collision detection?

(aka, how do you check to see if the ball hits the walls or the paddle?)

Did you make this yourself, or perchance use a tut?

< Message edited by EragonZZZZ -- 5/17/2009 19:59:29 >
AQ  Post #: 22
Page:   [1]
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> How to Make A Movieclip In Flash 8
Jump to:






Icon Legend
New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Content Copyright © 2018 Artix Entertainment, LLC.

"AdventureQuest", "DragonFable", "MechQuest", "EpicDuel", "BattleOn.com", "AdventureQuest Worlds", "Artix Entertainment"
and all game character names are either trademarks or registered trademarks of Artix Entertainment, LLC. All rights are reserved.
PRIVACY POLICY


Forum Software © ASPPlayground.NET Advanced Edition