The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 11 of 11

Thread: creating a character for my game

  1. #1

    creating a character for my game

    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

  2. #2
    Hey bombsledder,
    I've been making characters lately but the big question is what view are you wanting??? (Side on / Above???)

    I'm not excelent with Action Script but tell me your veiw and I'll have a bash at it!!!


  3. #3
    I know how to do that....but it say's unexpected file format when I download it. Are you using MX 2004?

  4. #4
    Here's a script that you could you use to do what you want seeing as I can't access your game file.

    onClipEvent (enterFrame) {
    if (Key.isdown(KEY.LEFT)) {;
    this._xscale = -100;
    this._x -= 8;
    onClipEvent (enterFrame) {
    if (Key.isdown(KEY.RIGHT)) {;
    this._xscale = 100;
    this._x += 8;
    onClipEvent (enterFrame) {
    if (Key.isdown(KEY.UP)) {
    this._y -= 8;
    onClipEvent (enterFrame) {
    if (Key.isdown(KEY.DOWN)) {
    this._y += 8;

    You put this script on the movie clip that holds your character animations. Then modify the above so it fits the animations of your character.

    this._x and this._y
    are important lines to modify

    as well as the

    If you want any more help please repost your fla. in MX format so I can see what you may be doing wrong.

  5. #5
    ok. thanks im trying to create a 3d game with the character to move each and every direction with different animations.


  6. #6
    TRIG! *cough*

  7. #7

  8. #8
    Trigonometry ...

  9. #9
    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:

    onClipEvent (enterFrame) {
    if (Key.isdown(KEY.LEFT)) {
    this._x -= 8;

    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?

  10. #10
    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?

  11. #11
    I've found the answer i was lookin' for: a movie clip within a movie clip... Anyway, thanks for your help!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012