i can pretty much make a game now but how'd i make him errrm move his legs kinda thing...
How Can i Make my guy 'look' like he's running
(45 posts) (10 voices)-
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago #
-
i mean like when i tell him to go forwad make him move his legs.
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
Have you tried asking nicely?
Posted 3 years ago # -
If he doesn't respond, try asking the UN Security Council to vote for some sanctions...
Posted 3 years ago # -
Hum...
What I do is. I draw a guy. I select-it and transform it into a moviclip. Then, in this movieclip's time line(_root.guy), I create three layers: idle, right and left. I each layer I create a moviclip (_root.guy.right, _root.guy.left and _root.guy.idle). I each mv, I animate an action (running right, running left, waiting for the player to do something...)As for the code:
onEnterFrame = function(){
if(KeyisDown(LEFT){
_root.guy.left._visible = true;
_root.guy.right._visible = false;
_root.guy.idle._visible = false;
}
else if(KeyisDown(RIGHT){
_root.guy.right._visible = true;
_root.guy.left._visible = false;
_root.guy.idle._visible = false;
}
else{
_root.guy.right._visible = false;
_root.guy.left._visible = false;
_root.guy.idle._visible = true;
}
}Hope that helped a bit. I'm a begginer too. And I haven't tested the code. Anyways, let me know if this does or does not work.
Posted 3 years ago # -
Oh! If you meant: "How can I animate it?"
Then: http://www.wayofthepixel.net/pixelation/index.php?topic=1708.msg20999;topicseen#msg20999
Look for Indigo's post, really helpfull.
Posted 3 years ago # -
O.G. I think you've officially become my favorite member for those responses.
Every girl loves a man in fancy pants! =)Posted 3 years ago # -
I'll post something more in depth soon, but until I do, I recommend getting comfortable with duplicating movie clips, and using the swap button to change them out. For instance, making an idle animation on frame 1, then hitting f6 to make a new keyframe right next to it, right click the idle movie clip in the library, turning it into a walk animation, clicking on the idle animation on the second frame, clicking 'swap' in properties, so you have idle on frame 1 and walk on frame 2.
This is definitely the types of questions I wanted, I'll make up something more detailed when I get a chance.
Doodle, sketch, draw, design, fill notebooks with elaborate scenes, funny character designs, and gameplay ideas.
Find your own personal style and run with it. Craft characters and stories that you love.
Enjoy your own work, and don’t be afraid to show it off. Create.Posted 3 years ago # -
What kind of game is it going to be.
Fancy Pants Adventure 3 is out.Click here http://www.youtube.com/watch?v=eBGIQ7ZuuiUPosted 3 years ago # -
Alrighty, here's the long answer, and motionsmith, feel free to make fun of my archaic ways, haha.

There's Fancy Pants Man's timeline. On the first frame is a movie clip of him standing there, idle. I also put code on every single frame, since most of his actions use fairly unique code, with anything universal (like standing on the ground, moving based on your speed) called through functions.

On this frame is FPM's run animation, between the two are clips for starting to run and starting to run backwards, but you don't need anything like that for a simple game (or Viewtiful Joe either, apparently).

And here's his jump frame. As you can imagine, the code on this frame is much different than the walking frames, but shares the same functions as the wall jump frame (since you're still moving up and down in the air), and the 'hurt and knocked down' frame.
The absolute easiest way to to code changing animations would probably be to run this inside an onEnterFrame function on your root:
if (Key.isDown(Key.RIGHT)) {
char._x += 5
char._xscale = 100
char.gotoAndStop(2)
} else if (Key.isDown(Key.LEFT)) {
char._x -= 5
char._xscale = -100
char.gotoAndStop(2)
} else {
char.gotoAndStop(1)
}Idle animation would be on frame 1, run animation on frame 2, and assuming the character was drawn facing the right.
To make sure both line up properly, it's a good idea to use the duplicate function in the timeline to create a copy of an old animation, animate inside that that duplicate, then press f6 on the timeline so that you have the same animation twice, then use the 'swap' button on a movieclip's property window to replace that duplicate clip on that keyframe with the new animation.
Alright, does anyone understand that? Heh.
Doodle, sketch, draw, design, fill notebooks with elaborate scenes, funny character designs, and gameplay ideas.
Find your own personal style and run with it. Craft characters and stories that you love.
Enjoy your own work, and don’t be afraid to show it off. Create.Posted 3 years ago # -
Thanks guys this really helps bout to test (only have flash 8 though.) At the moment i have made a five level game where you have to avoid the walls and get to the end. Thanks again!
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
Oh, and stick 209 umm i have no idea - but i guess a platform game.
My game has 25 frames...including you died and you won for every level. and look at fancy pants! lolshould i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
whoa bouzolf that was kinda confusing. i don't even know where to put the code wheather it frame or what....? but thanks
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
Yeah, sorry. Hum. In the main timeline (_root), I have a layer called "Actions". In the first frame of it, wich is empty, I put all my code.
Anyways, Brad's answer kinda owned mine...
Posted 3 years ago # -
lol yeah i am dooing it now...but i had ACTUAL work to do yesterday so...y'know...
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
i tested your btw bouze i think in this bit....:
onEnterFrame = function(){
if(KeyisDown(LEFT){it need another bracket like....
if(KeyisDown(LEFT)){same with right....but that's ALL i found (though i don't know what version of flash you are using
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
so with brads owning answer's code make FPM move on his own without going back to all the other frames which would restart the game if you see what i mean?
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
Brad's method is the same sprite method that I use to build the games at Disney. It works well and allows for fast development.
</ArchaicAcceptance>
http://blueflamedev.com/blog
Blueflame Development and the Citrus EnginePosted 3 years ago # -
brad's method is confusing. lol. soz i'm new to game...making...
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago # -
okay i've made my crapy anamation of my guy walking. Now what? sorry that i need you guys to hold my hand while i turn on the comp or somat
should i write something here? oh wait i am...thanks anywaysPosted 3 years ago #
Reply »
You must log in to post.