ActionScript 3.0 :: Make A Character Move Its Legs When It Walks?
Mar 18, 2012I want to make a character move its legs when it walks but I don't know how to do this.
Not necessarily just move this character, but general movement in general.
I want to make a character move its legs when it walks but I don't know how to do this.
Not necessarily just move this character, but general movement in general.
I'm brand new to flash and want to create a character with moving legs. I've created the character with legs, but don't know how to get them moving properly. Does anyone know a good tutorial?
View 2 RepliesI have a game where the character walks around the screen and stops if she hits a wall or a hole etc... - typical. HOWEVER - I coudn't get her to stop walking. Is there any standard code for this. If you tell to stop walking then she can't walk back out either etc... Also, she walked into the hole a little so being in the hole she definately couldn't walk any more not even back out as she would be walking inside the prohibited zone.
View 3 RepliesI've created a walk cycle using bone tool on a character but i don't know how to make it move from one part of the screen to the other. The character is made up of 6 layers, 4 of which are armatures and 2 have motion tweens.
View 1 RepliesWell, basically i need to make my game so my mc doesnt fall through the ground when he jumps or walks, coz so far all he does is jump, then fall through the floor.
View 3 Repliesi was wondering if any of you out there could tell me how it is possible to make a movieclip of a character and when the character is dragged about the screen by the curser, how do you make the characters arms and legs swing about in a realistic fashion.
View 2 RepliesI have my character movement down, and now I want the create a map. I want the screen to move with the character, and eventually I will have it so that at certain spots on the map, the screen will not let you move and stop and enemies will come out.
View 0 RepliesI have found a ton of tutorials with code that teaches you how to move a character, or move objects with arrow keys.... but I have found nothing that teaches you the code that allows the character in a video game to move an object around. like for example a character needs to slide a block across the ground so he can jump on it to reach platform that higher up.In my platformer game, I have figured out how to jump and move the character back and forth among the platforms with gravity, and thats as far as I have got.
View 8 RepliesHow exactly do I cause the screen to move in time with the players character?
View 5 RepliesA) When I hit the UP key to jump the character continues to move up as I hold the key down.
B) When I stop moving forward the frame of the stickman symbol for walking keeps playing and I want it so the frame labeled "idle" will play when I release right or left.
C) Is it possible to have an action for holding 2 keys at once? I want to have it so i can hold SPACE and RIGHT/LEFT to run.
[Code]...
My character's name is character. When left and right are pressed it tells me what's being pressed when I run it - it says there's no errors with the code. My character doesn't do anything though! [code]...
View 5 RepliesI am trying to find a way to have text start in a specific column depending on the character count.
Basically our site will have 3 columns. For example if the text only has about 300 Characters - it would start in the right column. If it had between 301 & 600 characters - it would start in the middle column and run to the right column. If it had more than 601 characters - it would start in the left column and run to the middle then right column.
I got a character to move. I want the player to be able to move the character to a button then press spacebar on it. Which will take them to another frame.
This is the code I got for the button but the trouble is u can press spacebar anywhere to go to the next frame.
on (keyPress "<Space>") {
_root.gotoAndPlay(23);
}
I am trying to assign buttons my on my 'gameScreen' to move my character. though I am receiving an error msg saying: Error #1010: A term is undefined and has no properties.at Mainas()
package{
import flash.display.MovieClip;
import flash.events.MouseEvent;[code]....
I'm making a shooter. Whenever my bullet starts flying and I move my character the bullet keeps moving with it. The rotating gun is in the body movieclip layer so it follows the body around and I can move the gun is there anyway to disconnect the bullet from also moving around with the body ?
Code:
stage.frameRate = 30;
var angle:Number = 0;
var radiansToDegrees:Number = 180/Math.PI;
var degreesToRadians:Number = Math.PI/180;
var currentGeweer_mcRotation:Number;
var Bullet_mcHolder:MovieClip = new MovieClip();
addChild(Bullet_mcHolder);
[Code] .....
i am doing this: press buttons on screen to move character left or right, "swipe" elsewhere on screen to do other stuff.
This is how i have handled it:
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
stage.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
stage.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
buttonContainer.addEventListener(TouchEvent.TOUCH_ OVER, tOver);
buttonContainer.addEventListener(TouchEvent.TOUCH_ OUT, tOut);
this works fine, just wondering if anyone has another way to handle it. it seems excessive to have 4 handlers for touch input, but i cant figure out any other way.
TOUCH_OVER and TOUCH_OUT check a switch statement to enable/disable buttons within buttonContainer.
TOUCH_BEGIN and TOUCH_END are used to store points and get a "swipe angle" (only if TOUCH_END is not over a button)
my only problem is i started having glitch's i think becuase so many listeners including: ORIENTATION_CHANGE, KeyboardEvents, Event.DEACTIVATE
this is why i ask if perhaps im missing someway to simplify the touch input listeners
I am trying to make a little game its just a project to help me get my head around the maths,I receive an angle and I want to use that angle to move the character away from the object are there any good tutorials for understanding this principle, or even what the term is for this?
View 7 RepliesI have this code to add my missile to the screen PHP Code:
[Code]...
it adds right where my character is but I cant seem to figure out how to get the missile to actual move in the direction the character is facing. heres how it looks [URL]
i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 Replieswell i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.
[Code]...
I have a MC linked with AS called char. And the problem is this, the char is supose to walk towards the mouse when i click the mouse. But now the problem is that the MC never stops. It just walks and often in wrong direction.
var speed = 5;
var aim = "crsSword";
var Move = false;[code].....
Using Tween class maybe? I tried the easeOut. But if will write 2 Tween, the 2nd one will overwrite the 1st one, so I only see the obj moving in the 2nd Tween direction, not the 1st Tween direction. I know the coordinates for the 2nd Tween below is not correct (cos all coordinates shld follow the defined reference point), so I need to find out the logo's width and height. But is alright now cos it is for testing purpose.
[Code]...
Im currently working on a piece for my final year project that takes a webcam and has an old movie effect over it in as3. I have this all working but what I need to know asap though is, Is there a way that i could put a black box layer over it that when the user walks in front of the camera that the black box would disapear. The code I have in the actions panel for the webcam is:
[Code]...
Everything going well so far except for camera control. I want the character to always be in the center of the screen. only when the side boundaries are reached, the character should leave the center of the screen to be able to reach the sides of the screen.Somewhat like this: http:[url]....I've tried 2 ways but both without succes:
- move the character using the keyboard, but somehow keep it in the center of the screen (have no idea on this one)
- move the entire area except the character to simulate movement.
This seems kind of ineffeciant but it worked out better that the previous attempt, the only problem is that the character doesn't return to the center of the screen when he leaves the boundary.The .fla's are available for download here http:[url]....
the actionscript is all in the first frame.try not to be too hard on the crappy visuals Ignore the comments too, theyre only there to help me understand what I did.The boundaries seem to be a bit sketchy aswell when moving to the sides, but that's not a big problem right now.
I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]
View 1 RepliesSo I'm making a platforming game, how do I make my character have a different animation for when he runs or jumps?
View 4 Replieshow would i make a level that follows the character? would it be a on enter frame event?
View 13 RepliesI got a curve(e.g. movieclip) which i want my character to go on when i press left/right arrow. How to make that?
View 2 RepliesI am creating a game in flash using spirte sheets of megaman and I have a problem setting up script to make him jump. I am able to have megaman run side to side and also shoot but I can not get him to jump. Here is a sample of my code:
var hspeed = 0;
var vspeed = 0;
var i = 0;
[code].....
How would i make an enemy bullet go towards the main character?
View 7 Replies