Walking Animation Troubles ... Still
I've gotten my character to walk correctly north south east and west:
http://www.fuzzydzygn.com/movement.html
But for some reason I can't get my diagonals to work. It doesn't do the walk animation, and the character jumps to the wrong from on keyup. I don't understand why. I think it is probably because of the double button press. But I would like to make it work this way. any help?
fla file:
http://www.fuzzydzygn.com/movement.fla
code:
Code:
onClipEvent (enterFrame) {
if (!_root.back.hitTest(this._x+20, this._y, true)) {
right = true;
} else {
right = false;
}
if (!_root.back.hitTest(this._x-10, this._y, true)) {
left = true;
} else {
left = false;
}
if (!_root.back.hitTest(this._x, this._y+10, true)) {
down = true;
} else {
down = false;
}
if (!_root.back.hitTest(this._x, this._y-10, true)) {
up = true;
} else {
up = false;
}
if (Key.isDown(Key.UP) and up) {
this._y -= 15;
setProperty(_root.hero, _width, _root.hero._width-6);
setProperty(_root.hero, _height, _root.hero._height-7.3);
tellTarget ("../hero") {
gotoAndStop("north_walk");
}
}
if (Key.isDown(Key.DOWN) and down) {
this._y += 15;
setProperty(_root.hero, _width, _root.hero._width+6);
setProperty(_root.hero, _height, _root.hero._height+7.3);
tellTarget ("../hero") {
gotoAndStop("south_walk");
}
}
if (Key.isDown(Key.LEFT) and left) {
this._x -= 15;
tellTarget ("../hero") {
gotoAndStop("west_walk");
}
}
if (Key.isDown(Key.RIGHT) and right) {
this._x += 15;
tellTarget ("../hero") {
gotoAndStop("east_walk");
}
}
if (Key.isDown(Key.RIGHT) and right && Key.isDown(Key.DOWN) and down) {
tellTarget ("../hero") {
gotoAndStop("southeast_walk");
}
}
if (Key.isDown(Key.RIGHT) and right && Key.isDown(Key.UP) and up) {
tellTarget ("../hero") {
gotoAndStop("northeast_walk");
}
}
if (Key.isDown(Key.LEFT) and left && Key.isDown(Key.DOWN) and down) {
tellTarget ("../hero") {
gotoAndStop("southwest_walk");
}
}
if (Key.isDown(Key.LEFT) and left && Key.isDown(Key.UP) and up) {
tellTarget ("../hero") {
gotoAndStop("northwest_walk");
}
}
}
onClipEvent (keyUp) {
prevFrame();
}
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-29-2002, 11:39 AM
View Complete Forum Thread with Replies
Sponsored Links:
Need A Walking Man Animation..
Hi peeps,
I need an animated vector based moving man movie. I looked in the movies section and I found one but unfortunately the man was walking towards you and I must have him walk away into the screen. It just needs to be a movie of a vector man walking into the screen.
Any ideas would be helpful.
Steven
www.real8.net
View Replies !
View Related
Walking Animation
I have a animation of a person walking, and I want it to go half across the screen and stop, when I add a stop action to the motion tween mc, it stops, but the person still walks in place, if I add the stop to the mc of the person walking, it won't loop. If I add the stop on the main timeline it does nothing. Any ideas? I am sure it is a simple fix.
I want this to stop and go to the next frame, I have also tried a stopAndgoto(2) and that doesn't work either.
Thanks for your input!
View Replies !
View Related
Walking Animation
I've been wondering for some time how I can make a realistic walking motion.
Starting from the beginning what will I need? Like seperate layers for hands, arms, etc. OR if anyone knows a good tutorial that would help it would wonderful of you guys.
View Replies !
View Related
Walking Animation
Hey, I am new here but hope to learn alot! I am a college student and we are just starting advanced actionscripting. I just had a question. Our main project is we have to make a game in flash. so im starting with getting a character to walk. I havent started to design him yet but thats because im wondering if i should make it a sprite, or a movie clip. the animation will be triggered by a keypress and I am just wondering what you guys think would be the best way to do this, and if you know of anywhere that may be able to show an example. I know alot of people were curious about it but I was unable to find anything that explains how to in AS3. Thanks again
View Replies !
View Related
Walking Animation?
Ok i could never figure this out so I need some help x.X
How do I make a walking animation where when you click on the left arrow, your account walks left with the walking animation, and the LEGS move smoothly back and forth.
Same for right arrow and such.
If its possible does anyone have a source script for it or anything x.X?
View Replies !
View Related
Walking Animation Problem
yes.i'm doing a tutorial which involves animation and i've been having a problem.in layer 1,i Edir_Modify,then i turn off the visibilty in Layer 1 and i select the second frame in Layer 1 and i insert a frame.then i go to the third frame and insert a blank frame,as directed, and i suppose tp aste my object on stage in the third rame,but FlashMX won't let me paste.please could someone help?
View Replies !
View Related
Walking Animation Won't Work
I used one of the tutorials on this page to make a already finished animation of a walking man walk from one side of my screen to the other, instead of just on one place.
and Guess what:
It didn't work
I came up to this step:
http://www.flashkit.com/tutorials/An...518/more10.php
when it wouldn't work anymore.
I did everything like it was said but in the end:
The "walking man" wasnt waking but just a sliding image from point a to B like I just had taken 1 not animated Pic and let it move with a normal movment tween.
Can anybody help me and tell my where the animation is gone?
View Replies !
View Related
Walking Animation Question
Hi, I've just made my character do a basic walking movement. But I want to make him walk forward continuously, is there an easy way to do this, instead of having copying the frames and dragging all the parts to the right place? It's kinda hard to explain, check the file out please!
Thanks.
View Replies !
View Related
Walking Animation Stop();
Someone has been helping me out, seeing if anyone else can help me out:
I have a walking person that goes to the middle of the stage, stops, and looks down and something in their hand
I have a main timeline that contains a movie clip (I will call it 1) and 3 frames as of right now.
That movie clip is actually the person walking arcoss the screen, so the tweened person.
Nested inside of that, is a mc (called 2) that is the actual steps of the person walking.
Here is my problem that was partially fixed.
I need my mc 1 to run and stop and then go to frame 2, frame 2 will have a mc on it as well, that should run its course, and then go to frame 3 and so on.
This was the code that was put at the LAST frame of the MC 1 (the tweened person walking)
stop();
_root.WalkingMc.motionMc.gotoAndStop(1);
WalkingMc is the instance name on the main timeline
motionMC is the instance name of the actual MC 1...the tweened person (Does that make sense?)
When I had just ONE frame this worked correctly. My person walked, and stopped when I wanted it to. The problem came when i added frames. I changed the frame # (I know I have to change this to actual names fin place of the frame #) and it didn't work.
My file size is too large to add it on here, but I can email it to anyone on a mission to help me out :-)
Thank you so much.
View Replies !
View Related
[F8] Walking Animation In Game
hi, im trying to make a game where the arrow keys move your player, simple enough, but i want his legs to move to, im making it so on keypress it goes to and plays the frame of him walking, but it doesn't work, it just goes to and stops the next frame, if this makes sense. please help? how can i make him walk?
View Replies !
View Related
Walking/jumping Animation
I've been looking around and cant seem to find anywhere that has a good tutorial on making stick figure animations. stuff like you see here http://www.hackernetwork.com/flash/stickdeathx.shtml
can anyone help?
View Replies !
View Related
Walking Animation 'on The Spot' With Certain Key Presses
I have a glitch in my code somewhere, and was wondering if one of you kind souls would help me.
I have a walking animation frame for a movieclip (frame 5), and a still frame for when it is not in motion (frame 1).
It all works fine, except for one small glitch.
If I hold RIGHT (for example), then release, it stops walking.
If I hold RIGHT, then hold UP, then release UP, then release RIGHT, it continues the walking animation but stops moving.
Any ideas?
Code:
onClipEvent (load) {
gotoAndStop(1);
leftpower = 12;
rightpower = 12;
uppower = 12;
downpower = 12;
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.CONTROL))
{
keydown=true;
}
else
keydown=false;
if (Key.isDown(Key.LEFT)) {
_x -= leftpower;
gotoAndPlay(5);
this._xscale = -100;
}
if (Key.isDown(Key.RIGHT)) {
_x += rightpower;
gotoAndPlay(5);
this._xscale = 100;
}
if (Key.isDown(Key.CONTROL)) {
gotoAndPlay(12);
}
if (Key.isDown(Key.UP)) {
_y -= uppower;
gotoAndPlay(5);
}
if (Key.isDown(Key.DOWN)) {
_y += downpower;
gotoAndPlay(5);
}
if (_root.wall.hitTest(_x, _y, true)) {
xspeed = 0;
yspeed = 0;
leftpower = 0;
}
else {
leftpower = 12;
}
if (_root.bwall.hitTest(this.touch)) {
xspeed = 0;
yspeed = 0;
downpower = 0;
}
else {
downpower = 12;
}
if (_root.twall.hitTest(this.touch)) {
xspeed = 0;
yspeed = 0;
uppower = 0;
}
else {
uppower = 12;
}
if (_root.leadpipe.leadpipetouch.hitTest(this.touch)) {
_root.leadpipe._x = -1000
gotoAndPlay(5);
}
}
onClipEvent (keyUp) {
if (Key.getCode() == Key.RIGHT) {
gotoAndPlay(1)
}
}
onClipEvent (keyUp) {
if (Key.getCode() == Key.LEFT) {
gotoAndPlay(1)
}
}
onClipEvent (keyUp) {
if (Key.getCode() == Key.UP) {
gotoAndPlay(1)
}
}
onClipEvent (keyUp) {
if (Key.getCode() == Key.DOWN) {
gotoAndPlay(1)
}
}
View Replies !
View Related
Starting And Stopping Walking Animation
I need some help with my little project.
I made a character and I let him move over the screen by clicking with the mouse. Next step is make him do a walking animation while he's moving. I made an animation on frame 2 on (_root.milford.animation) but when I try to tell it to go frame 2 with tellTarget() it doesn't work at all. No sign of the animation and I can't even move my character over the screen.
So could someone give me a hand here?
http://piers.buggyashell.nl/bogus.fla
View Replies !
View Related
Walking Character Animation Question
Sorry, I know I posted a character animation earlier, but I was wondering if anybody had any .fla files of a walking character they created or know of a place I could get open source files of a character walking. I promise I won't steal content lol, I already have my character I just need help jump starting into making him walk. I watched tutorials and I have a vague understanding, I think I would understand better if I had something to play with. Any points in the right direction is appreciated! Thanks for your time in reading this thread.
View Replies !
View Related
Animation Of The Outline Of A Walking Person.
You know those iPod-commercials where you just see the outline of a person moving around?
I want to do something like that myself, in flash. With a person walking in a direction and then stopping up, and the 'camera' zooms in on the head. Or you know, whatever.
Does anyone have any examples of this, or something similar being done in flash?
Or does anyone have any good tutorials for doing something like this?
Thank you in advance.
View Replies !
View Related
Walking Character Animation Question
Sorry, I know I posted a character animation earlier, but I was wondering if anybody had any .fla files of a walking character they created or know of a place I could get open source files of a character walking. I promise I won't steal content lol, I already have my character I just need help jump starting into making him walk. I watched tutorials and I have a vague understanding, I think I would understand better if I had something to play with. Any points in the right direction is appreciated! Thanks for your time in reading this thread.
View Replies !
View Related
The Walking, Fast Walking, Running Man On Preloader.
Hi, you guys have probably seen the running man tutorial by Lee? It's the one where you do it in poser and export it as swf.
Well, this is what I wanted to do and I am having trouble on how to begin with it.
I am making a preloader which at the very begining there will be a walking man(made from poser) on top of the bar just like below...
Then, I wanted it to change from walking to fast walking (Can be done with seperate poser swf files) when the preloader bar reaches 1/3.
Then at 2/3 I want it to change from fast walking to running (Another different swf file).
I know this is possible, it's just the matter of being able to code it.. I am still very new at action scripting so if any of you can help me, I will be very greatful
Thanks!
View Replies !
View Related
Flash Animation Troubles In Nested Tables
http://www.concentric.net/~Gatienza/timelineproblem.htm
can someone please help me out? my animation does not appear right off the bat until i mouseover it. it is not a button, just a simple movie clip. it doesn't have this problem when it is in a table, but once it's in a NESTED table this happens. any help would be appreciated. is it something simple that i am overlooking?
thanks in advance,
jgatienza
View Replies !
View Related
RollOver And RollOut Animation On Button Troubles
So, basically I'm looking for some help or ideas on how to control a movie clip with a button. This animated movie clip is controlled with AS and has an animation for the rollover and rollout.
I've searched the forums and found a couple ways to do things like this but none seem to work the way I'm looking for (or I'm missunderstanding them which could be the problem). I've tried creating a movclip with the animations and putting an empty button on the clip. In this method I can't get the button to work.
If I put the rollover animation on the over state of the button then the button works but I can't get the animation to play and the rollout feature doesn't work.
So, at this point I'm thoroughly confused and I don't know where to go. If anyone can help out I'd be very gracious.
View Replies !
View Related
Walking A Character.. Detailed Walking.. Very Detailed.. Lol.. Help?
ok, a great question.. i can get a character to move.. i.e. onKeyDown Left move Moviename _x-5 or whatevar aite.. ok, now how can i make that to where it changes the movie too?
Say on keypress right the character turns right, and then walks.. but if the person releases the key then the character stops walking but stays facing right? or up, and down, ect.. Thanxz for any help guys!
P.S. Just like on http://www.goldyard.net
Those exact commands.. Thanxz again guy's!!!!!
-c.k.
View Replies !
View Related
Walking
Hi, would someone mind taking a look at my .fla.
I am trying to make a character walk, and it almost works, but theres one problem.
There are 8 movieclips, one for each direction, and depending on the current direction, the other movieclips are hidded.
The character is moved using the arrow keys.
The problem comes when walking in a direction, the character will 'walk' briefly on the spot before actually moving in the specified direction.
I have been going over this for a week and it's driving me mad, I cannot find out why it's doing it, any ideas?
I could really do with some help on this one, thanks..
The .fla is at:
http://www.ensburypark.demon.co.uk/walktest.fla
View Replies !
View Related
Walking
Can someone plaease tell me how to make a character look like its walking from the side every time i try a part of the led dissapears
View Replies !
View Related
Walking My Dog
I'm trying to have a dog walking with my mouse.
I created the dog animation. The animation is locked to the movement of the mouse. The movement is properly constrained within a given space.
What I'm having problems with is making the dog change direction as the mouse does: If the user goes to the left the dog does too but he does not face the direction the mouse is headed.
I'm fairly new at this so forgive me if this is simpler then I'm making it. Old Newbie offered some help before but I think I missed his response.
Thanks in advance
Andy
P.S. Attached is the file
View Replies !
View Related
Walking
how do you make someone walk.what i mean is where about do you putparts of tha body. also could some ome draw me a basic person i canot draw one for **** i was trying for about 3hours last
View Replies !
View Related
Walking...
I'm very new to Flash and I have a question about my animations.
I am trying to make my figure look as if it is walking...
I am having trouble doing this.
I motion tween the body, arms, head etc. to move foward at the speed I want and such but how can I get the legs to look as if they are walking.
Thanks!!
Sorry if this is the wrong forum, if it is, plz tell me where
View Replies !
View Related
Man Walking
I could create you a vector man walking toward the camera.
Or if you want to do this yourself, you can use 3D Studio Max
and the Illustrate! Plugin to render a Character in Vector mode.
I have a few characters on my site...
www.sensavision.com
Fborcherdt@earthlink.net
View Replies !
View Related
Walking Man
Hello,
I have searched through all the movies here to look for a man that is sneaky or a burglar... I have found nothing that is really what I am looking for so i decided to try and make it. I do not think i have the skills to actually draw and animate a man of this sort yet as I have absolutlty no idea where I would start. so i was wondering if you thought this technique would work. to film myself or someone else performing the actions i needed, and then get many frames from the movie, cut out the backdrop and "trace" the bitmap in flash to make it look slighlty more cartoony, or not "cut out" from a video. Will this work? any thoughts or advice would be extremely helpful thank you.
View Replies !
View Related
Walking...
im not that new to flash...ive been doing stuff like sigs and websites and stuff but im getting into animation like fights and stuff like that
first i just want to start off with stick figures....anyone know some good tutorials that show how to make walking animations? im doin good on the other stuff i just cant seem to get the walking animation to look good
View Replies !
View Related
Walking Man
Hello Guys.
I want to put a walking man's image into flash banner, carrying a briefcase in his hand, actually i have made a banner and that is related to jobs, so i need some animation walking man carrying a bag in his hand, can somebody help me out of this. Or give me some solution for this. How can i solve it.
Thanks Feroze.
View Replies !
View Related
Walking Man
Hi everybody.
I have made a banner in flash for a website which is related to jobs, so i need an animation of a man walking with a briefcase through the screen, so can anybody please help me solve this problem, or give me any solution. How can i find a walking man animation.
Thanks
Feroze
View Replies !
View Related
Walking Tut
could anyone make me a tutorial or a link to a tutorial that shows the correct steps in making a walking character? because whe i try it just ends up looking like crap
View Replies !
View Related
[CS3] Walking
I was thinking of doing just another simple thing to get used to Flash, and a person walking seemed good. But i was wondering about the code. I have a basic idea, please correct me if I'm wrong. Basically, it would be switching frames, like:
_root.gotoAndStop(frame+1)
Can I do that to switch to a frame? Frame+1? And does Flash loop so I don't need to specify the maximum frame number? Instead of saying basically if it is greater than 9, go to 1? Thanks!
View Replies !
View Related
Walking Bug...
Hi,
i search a good tutorial, or maybe a source, to make a bug walking, and walking faster, when we make a mouse over on it.
too hard programming for me !
( exactly like the fly of the cool site : www.24-7media.de )
thanks
View Replies !
View Related
3d Walking
hey there!
i have made this file http://www.true-b-art.com/3dwalk/3d_walk.html (you can find it also on this site under 3d tutorials)
can anybody fill it on with mabey random positioning, and if you click on it you get an pop-up window (for each ball a saperate one)
ah well here is the fla http://www.true-b-art.com/3dwalk/3d_walk.fla
and the swf: http://www.true-b-art.com/3dwalk/3d_walk.swf
View Replies !
View Related
Walking?
How do I make an scripted animation ...
When I ask for that I just want to know how you can make a persons feet move when you HOLD down Left and Right.
Example, I have an animation thats 6 frames long, and its through 1-6 and I am using the same animation (1-6) for walking backward and forward.
When i press Left Or Right, I want it to play to 6, and if I am still pressing left or right, I want it to go back and play from 1.
THIS IS JUST AN EXAMPLE , Please if u know other ways tell me !
Thank you !
View Replies !
View Related
Walking
Here's a little experiment to take a wire frame man and make him walk. Each part, such as thighs and calves, forearms and upperarms, etc, affect the other parts of the body.
The head bob is a bit much especially at high speeds, but otherwise, I think it works ok. You should be able to replace the lines with images of body parts to acheive a decent walking animation. You can see a working example at http://www.geocities.com/webwizardsw...es/walking.swf (the slider affects the speed, right is faster, left is slower)
PHP Code:
clipcount=0;
thickness=6;
createEmptyMovieClip('head',clipcount++);
with(head){
_y=200-thickness*14;
_x=100;
lineStyle(thickness*2,0xff00ff);
moveTo(0,-thickness*2);
lineTo(0,-thickness*3);
}
head.onEnterFrame=function(){
this._x=_root.man._x+thickness/2-speed/48;
this._y+=(_root.man._y-this._y)/1.5;
};// end head
createEmptyMovieClip('man',clipcount++);
with(man){
_y=200-thickness*14;
_x=100;
createEmptyMovieClip('body',clipcount++);
with(body){
_rotation=-6;
createEmptyMovieClip('leftArm',clipcount++);
with(leftArm){
_x=thickness/2;
lineStyle(thickness,0xff0000);
lineTo(0,thickness*4);
createEmptyMovieClip('fore',clipcount++);
with(fore){
_y=thickness*4;
lineStyle(thickness,0xff0000);
lineTo(0,thickness*3);
}// end fore
}// end leftArm
createEmptyMovieClip('leftThigh',clipcount++);
with(leftThigh){
_y=thickness*6;
_x=thickness/3;
lineStyle(thickness,0x0000ff);
lineTo(0,thickness*4);
createEmptyMovieClip('calf',clipcount++);
with(calf){
_y=thickness*4;
lineStyle(thickness,0x0000ff);
lineTo(0,thickness*4);
createEmptyMovieClip('foot',clipcount++);
with(foot){
_y=thickness*4;
lineStyle(thickness,0x0000ff);
lineTo(thickness/2,0);
}// end foot
}// end calf
}// end leftThigh
createEmptyMovieClip('rightThigh',clipcount++);
with(rightThigh){
_y=thickness*6;
_x=-thickness/3;
lineStyle(thickness,0x0000ff);
lineTo(0,thickness*4);
createEmptyMovieClip('calf',clipcount++);
with(calf){
_y=thickness*4;
lineStyle(thickness,0x0000ff);
lineTo(0,thickness*4);
createEmptyMovieClip('foot',clipcount++);
with(foot){
_y=thickness*4;
lineStyle(thickness,0x0000ff);
lineTo(thickness/2,0);
}// end foot
}// end calf
}// end rightThigh
createEmptyMovieClip('body',clipcount++);
with(body){
lineStyle(thickness*2);
lineTo(0,thickness*5);
}// end body
createEmptyMovieClip('rightArm',clipcount++);
with(rightArm){
_x=-thickness/2;
lineStyle(thickness,0xff0000);
lineTo(0,thickness*4);
createEmptyMovieClip('fore',clipcount++);
with(fore){
_y=thickness*4;
lineStyle(thickness,0xff0000);
lineTo(0,thickness*3);
}// end fore
}// end rightArm
}// end body
}// end man
createEmptyMovieClip('road',clipcount++);
with(road){
lineStyle(1);
lineTo(Stage.width,0);
for(x=0;x<Stage.width;x+=10){
moveTo(x,-5);
lineTo(x,0);
}
_y=200;
}
leftThigh=new Array(23.2,21.2,19.2,17.2,15.3,13.5,11.7,9.8,8,6.1,4.2,2.3,0.5,-3.3,-8.3,-14.5,-17.3,-19,-20.8,-22.6);
leftcalf=new Array(16.5,21.5,26.5,31.5,36.2,40.7,45.2,50,54.5,59.2,64,68.7,73.2,74.2,62.2,31.2,17.2,8.7,7.7,7.7);
rightThigh=new Array(-23.2,-21.2,-19.2,-17.2,-15.3,-13.5,-11.7,-9.8,-8,-6.1,-4.2,-2.3,-0.5,3.3,8.3,14.5,17.3,19,20.8,22.6);
rightcalf=new Array(8.4,9.7,11,12.4,13.6,14.8,16,17.3,18.5,19.8,21,22.3,23.5,21,16,8.2,7.9,9.6,11.4,13.2);
leftArm=new Array(-23.2,-21.2,-19.2,-17.2,-15.3,-13.5,-11.7,-9.8,-8,-6.1,-4.2,-2.3,-0.5,3.3,8.3,14.5,17.3,19,20.8,22.6);
leftfore=new Array(-23.6,-22.6,-21.6,-20.6,-19.7,-18.8,-17.9,-16.9,-16,-15.1,-14.1,-13.2,-12.3,-10.4,-7.8,-4.7,-3.3,-2.5,-1.6,-0.7);
rightArm=new Array(23.2,21.2,19.2,17.2,15.3,13.5,11.7,9.8,8,6.1,4.2,2.3,0.5,-3.3,-8.3,-14.5,-17.3,-19,-20.8,-22.6);
rightfore=new Array(-0.4,-1.4,-2.4,-3.4,-4.3,-5.2,-6.1,-7.1,-8,-8.9,-9.9,-10.9,-11.8,-13.7,-16.2,-19.3,-20.7,-21.5,-22.4,-23.3);
Xchange=new Array(2.15,2.05,2.1,2.1,2,2.05,2,2,2.05,2.05,2.1,2,2,2.05,2,2,2.1,2.05,2.1,2);
currentY=new Array(118.05,117.2,116.45,115.8,115.25,114.9,114.6,114.4,114.25,114.2,114.25,114.4,114.65,114.7,114.65,114.65,115.15,115.85,116.7,117.55);
lr=false;
framecounter=0;
MovieClip.prototype.move=function(){
if(lr){
a=this.rightThigh;b=this.rightArm;c=this.leftThigh;d=this.leftArm;
}else{
a=this.leftThigh;b=this.leftArm;c=this.rightThigh;d=this.rightArm;
}
c._rotation=leftThigh[framecounter];
c.calf._rotation=leftcalf[framecounter];
a._rotation=rightThigh[framecounter];
a.calf._rotation=rightcalf[framecounter];
d._rotation=leftArm[framecounter];
d.fore._rotation=leftfore[framecounter];
b._rotation=rightArm[framecounter];
b.fore._rotation=rightfore[framecounter];
this._parent._x+=Xchange[framecounter];
this._parent._y=currentY[framecounter];
if((framecounter++)==20){framecounter=0;lr=(lr)?false:true;}
if(this._parent._x>Stage.width){head._x=this._parent._x=-10;}
updateAfterEvent();
};
createEmptyMovieClip('slider',clipcount++);
with(slider){
lineStyle(4);
lineTo(200,0);
_x=300;
_y=50;
_xscale=-100;
createEmptyMovieClip('handle',clipcount++);
with(handle){
lineStyle(2);
moveTo(0,-8);
lineTo(0,8);
_x=100;
}
}
slider.handle.onPress=function(){
this.startDrag(0,200,0,0);
};
slider.handle.onRelease=slider.handle.onReleaseOutside=function(){
stopDrag();
clearInterval(mover);
mover=setInterval(function(){_root.man.body.move();},(speed=display.text=48*this._x/200));
};
createTextField('display',clipcount++,100,0,100,20);
slider.handle.onRelease();
View Replies !
View Related
Walking 3D Figure
Hiya,
Basically, I'm looking into creating a walking figure that follows the mouse. I plan to do it this way...
when you rollover a certain area the figure walks towards the mouse...if you move your mouse ...depending on its angle the figure will walk at an angle..up down ..left and right..etc...8 ways ..
like the coin-op-ciyt.com figure...
anyone have any ideas...
I think I first have to work out the mouse angle...to figure out which way the figure should walk.
stuart
View Replies !
View Related
Rpg Walking Character Help
I tried posting something up about my little problem but no help, so could i simplify my question to;
does anyone know where i can read up, learn, look at, download, try some actionscript to make a character walk, up, down, left, right and stop efficiantly when objects are in the way, using top down views a bit like pokemon?
If anyone has any ideas, had the same problem before or even have some suggestions themselves that would be great!
Thanks alot for your time
James
If you want to read my earlier post go here about this;
http://board.flashkit.com/board/show...hreadid=311929
View Replies !
View Related
Walking Thing...................
Hi!!
As you can see, I'm a newbie :-D.
I want to know how to make a figure walk, cuz to me it's pretty hard to do.
What I mean is how to make like a person walk in flash. The way I do it is too complicated, What I do is frame after frame of drawing, and still it looks awful, I've seen movies in where a character moves smoothly trought the screen, the character even moves the legs independly HOW DO THEY DO THAT???????!!!!!!!!!
Well that's all.
C'ya.
(I hope you understand what I'm trying to do here)
View Replies !
View Related
Walking The Walk.
Ok, I got flash 5 and now I need help. I know how to make things move but then it gets hard. I need to know how to make a leg or an arm move in sync with the other parts of the arm and leg. I can make diffrent parts and make them symbles on other layers but when I rotate them one end of an arm sticks out of the other. How do I make them conform to each other? Also, and likely the dumbest question I'll ever ask, does the amount of layers add to the file size?
Well, let me get a little more spacific (never was a good speller). I am talking about just one arm, bending like a real arm does. I have the lower part of the arm (from the elbow down) on one layer. On another layer I have the uper arm (from the elbow up). I tween them to make them bend like a real arm, but thats where the problem starts. The lower arm (while moveing to the desired position) during the middle of the tween ends up haveing a corner sticking out of the other side (the wrong side, unless the arm is broken) of the uper arm. Or it just separates from the uper arm in the middle of the tween and comes together again by the end. I thought of adding a frame for a circal to act as a joint and it does ok except for the fact that the arm still doesn't stay atatched to the joint in just the right way. How do I make the arm move the way a real one does, without one end sticking out of the uper arm or separateing all together or just moveing up into the uper arm? How do I make it look like a real arm?
View Replies !
View Related
Walking Into Walls
Hope someone out there can help me with this.
Take a look at this url:
http://www.flashkit.com/movies/Games...7738/index.php
I can't work out how to make the little figure walk round rather than stopping when it walks into a wall if the point where the mouse clicks is the other side of a wall. I want it to walk to the wall and around it not into it!!! Any ideas clever people???
Hope so!
D
View Replies !
View Related
Rotational Walking
Does anyone know how I can add a bit of code to an MC so as it rotates depending on where the mouse is moving to.
So if the mouse goes top left from the MC you get the clip to go to and play the MC walking away viewed as if from the back.
http://www.dig01.com/da_man.html
the url above should make it a bit clearer.
Cheers Dudes & Dudettes!
Diggz
View Replies !
View Related
Ok, A Walking Button - WTF?
This is WEIRD. Check out the attached file. It's got a single button. the code is:
on(release){
this._width+= 20;
}
When you click on the button, it does lengthen, but it changes position as well! This is the first time I've seen this - is there a way to keep the button from doing this?
View Replies !
View Related
Walking Motions
I'm trying to expand my actionscript ability and what i need help with is getting a character to walk with different animations I have the script for it
onClipEvent (keyDown) {
if (Key.isDown(key.LEFT)) {
_x -= 10;
if (this._currentFrame="left") {
this.gotoAndPlay("left2");
} else {
this.gotoAndPlay("left");
}
}
}
onClipEvent (keyDown) {
if (Key.isDown(key.RIGHT)) {
_x += 10;
if (this._currentFrame="right") {
this.gotoAndPlay("right2");
} else {
this.gotoAndPlay("right");
}
}
}
onClipEvent (keyDown) {
if (Key.isDown(key.UP)) {
_y -= 10;
if (this._currentFrame="up") {
this.gotoAndPlay("up2");
} else {
this.gotoAndPlay("up");
}
}
}
onClipEvent (keyDown) {
if (Key.isDown(key.DOWN)) {
_y += 10;
if (this._currentFrame="down") {
this.gotoAndPlay("down2");
} else {
this.gotoAndPlay("down");
}
}
}
but I cant get it to work I know it has something to do with labeling frames but I cant figure it out. Any help on this please?
View Replies !
View Related
Walking Or Talking
I am new to this site, so forgive me if this is a question that was already asked.
What I am tring to do is create a cartoon in flash.
1. Is it possible to build a character and lock the arms and legs on the body with pivit points? So, if I move the arm up, it says in the sholder on the body and moves up like an arm. Same thing for the legs (but not on the sholder).
2. I am tring to animate my character talking. I have the head, mouth, eyes, and sound as seperate layers. Is it possible to flatten the layers in Flash so I could add it to my library and then put the talking head on my body?
Maybe there is a simple cartooning tutorial out there. Please direct me oh great masters of Flash in the right direction.
View Replies !
View Related
|