# Movement

**URL:** <https://forum.kirupa.com/t/movement/64206>\
**Category:** Uncategorized\
**Created:** [September 14, 2004, 4:21am UTC](https://forum.kirupa.com/t/movement/64206 "2004-09-14T04:21:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckyfan](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@ckyfan](https://forum.kirupa.com/u/ckyfan)\
**Post date:** [September 14, 2004, 4:21am UTC](https://forum.kirupa.com/t/movement/64206/1 "2004-09-14T04:21:25Z")

</div>

Probably threads before this one. . . anyways how would I go about making a guy walk left and right.

1. Would I make a movie clip and then the movments in it.
2. Then I would script the movment (of course)

so can someone help me with the script?

Please

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 1:28pm UTC](https://forum.kirupa.com/t/movement/64206/2 "2004-09-14T13:28:38Z")

</div>

You could try:

```php

onClipEvent (enterFrame) {
	if (Key.isDown(Key.RIGHT)) {
		this.gotoAndStop("walk");
		this._xscale = 100;
		this._x += 3;
	}
	if (Key.isDown(Key.LEFT)) {
		this.gotoAndStop("walk");
		this._xscale = -100;
		this._x -= 3;
	}
}

```

Basic walk code.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 2:00pm UTC](https://forum.kirupa.com/t/movement/64206/3 "2004-09-14T14:00:56Z")

</div>

I did that but, he moves but doesnt do walk animation.

I made him a movieclip then inside of it I made two frames then named frame 1 walk.  
Did I do something wrong?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 5:55pm UTC](https://forum.kirupa.com/t/movement/64206/4 "2004-09-14T17:55:41Z")

</div>

Send me the fla, Ill see whats wrong.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 14, 2004, 10:34pm UTC](https://forum.kirupa.com/t/movement/64206/5 "2004-09-14T22:34:06Z")

</div>

Ok, I have’nt used flash in a while I’m a little rusty I used to know how to before but I guess I forgot.

> **[Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce...](https://smallbusiness.yahoo.com/)**
>
> Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 12:59am UTC](https://forum.kirupa.com/t/movement/64206/6 "2004-09-15T00:59:45Z")

</div>

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 1:04am UTC](https://forum.kirupa.com/t/movement/64206/7 "2004-09-15T01:04:30Z")

</div>

> [@Skribble](#):
>
> 🙂

Darn! Beat me to the help!

peace

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 2:03am UTC](https://forum.kirupa.com/t/movement/64206/8 "2004-09-15T02:03:45Z")

</div>

Nevermind I fixed it. Thanks for the help

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 2:10am UTC](https://forum.kirupa.com/t/movement/64206/9 "2004-09-15T02:10:09Z")

</div>

This was just a test until I draw the real character and animations for him.  
Now how would I do something like this in speaking.

> **[the skullkid](https://www.newgrounds.com/portal/view/63747)**
>
> you're a kid, with a chainsaw, and a skull head

Such as the particles/debris flying from the things you are cutting up and enemys that when chainsawed, play their dying animation when let go of the chainsaw(like how they know they were hit with the chainsaw and how the player knew he couldnt go any further because of the enemy blocking his way)

I hope you understand what I mean.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2004, 3:15am UTC](https://forum.kirupa.com/t/movement/64206/10 "2004-09-15T03:15:41Z")

</div>

No offence man, but that is a really messed up game! Chain sawing people :huh:?!
