Trying to make simple game

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Trying to make simple game

    I'm trying to make a simple game, and i would like to make it so that when you press an arrow key (let's say the left) he goes left, but I don't know the code for it. Can anyone help me?
    bunny5619 Guest

  2. Similar Questions and Discussions

    1. First 3D game, some simple questions....
      Hi guys, This is my first post on these forums, so i hope you can help. I'm sorry for the novel sized post, but i really really could do with...
    2. Newbie : How to make a Simple Multiplayer Flash Game
      Hello All, I would like to learn and make multiplayer games using flash. I am a newbie to this, so i would really appreciate someone guiding and...
    3. Simple 3d game
      Hello all, I am trying to make a simple game in Director & 3d Max. A "marble blast" (marble madness) style game. Where a simple sphere goes arround...
    4. to make the game better
      http://www.geocities.com/hunter_x_hunter2004/pong.swf[/L check that game out. how do u think i can make it better how do i make the ball stop...
    5. SIMPLE GAME
      ok im making a simple card game. you move the cards that are located like this -is a card. the card is then dragged to anywhere...
  3. #2

    Default Re: Trying to make simple game

    myListener = new Object();
    myListener.onKeyDown = function() {
    if (Key.isDown(Key.RIGHT)) {
    yourMC._x += 3;
    } else if (Key.isDown(Key.DOWN)) {
    yourMC._y += 3;
    }
    };
    Key.addListener(myListener);

    kglad Guest

  4. #3

    Default Re: Trying to make simple game

    How the heel can i submit my own message on this site ???
    mercl Guest

  5. #4

    Default Re: Trying to make simple game

    there are a few differences. one, is the path MypasswordsObj.myPassword which
    you appear to understand. a second is that all loaded variables are strings,
    which shouldn't cause any problem for you. and a third is the time when
    MypasswordsObj.myPassword is available. because loading takes much more time
    than executing a variable assignment, you have to be careful to wait until
    loading is completed before trying to use a variable you expect to be loaded.
    this may be your problem, but i can't tell.

    kglad Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139