# Creating a character for my game

**URL:** https://forum.kirupa.com/t/creating-a-character-for-my-game/101705
**Category:** Uncategorized
**Created:** [February 12, 2004, 10:32pm UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705 "2004-02-12T22:32:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bombsledder](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bombsledder](https://forum.kirupa.com/u/bombsledder)
#### Post date: [February 12, 2004, 10:32pm UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705/1 "2004-02-12T22:32:36Z")

</div>

im creating a character for my game and i want this character to go up down left and right. I want him to while using an action to make him look like he is moving.

can someone look at this and tell me how to do this please.

thank you for your time

---

<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: [February 17, 2004, 11:59pm UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705/2 "2004-02-17T23:59:15Z")

</div>

TRIG! _cough_

---

<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: [February 18, 2004, 1:50am UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705/3 "2004-02-18T01:50:49Z")

</div>

TRig???

---

<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: [February 18, 2004, 1:58am UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705/4 "2004-02-18T01:58:50Z")

</div>

Trigonometry ;)…

---

<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: [February 19, 2004, 5:39pm UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705/5 "2004-02-19T17:39:26Z")

</div>

hey Fargate i wanna ask you something about your message:

let’s suppose i want to make a platform game (like mario bros or metal slug); for the walking character i have more or less a code that’s similar to yours:

[AS]  
onClipEvent (enterFrame) {  
if (Key.isdown(KEY.LEFT)) {  
this.gotoAndPlay(2);  
this.\_x -= 8;  
}  
}  
[/AS]

the instruction “this.gotoAndPlay(2)” is repeated continuously while the left arrow key is down; in this way we don’t give time to the animation (for example a character walking or jumping) to play (because it’s like we have a stop on frame two). How can i solve this problem?

---

<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: [February 20, 2004, 1:31am UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705/6 "2004-02-20T01:31:16Z")

</div>

Use at least 3 frames for the walking sequence and put a stop(); on your stand still frame. This will make it seem less jerky and more fluent. I think this is what your problem is? Am I 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: [February 20, 2004, 12:12pm UTC](https://forum.kirupa.com/t/creating-a-character-for-my-game/101705/7 "2004-02-20T12:12:08Z")

</div>

I’ve found the answer i was lookin’ for: a movie clip within a movie clip… Anyway, thanks for your help!
