A Flash Developer Resource Site

Search:

Type: Posts; User: Natter91

Search: Search took 0.02 seconds.

  1. Thread: Rotation Help

    by Natter91
    Replies
    2
    Views
    379

    I had this problem too, and I partially finished...

    I had this problem too, and I partially finished it. The solution is two if statements -- if(testVision > glide.rotation) glide.rotation += 1 and if(testVision < glide.rotation) glide.rotation -= 1. ...
  2. Replies
    6
    Views
    1,156

    I changed the button so that if there are lines,...

    I changed the button so that if there are lines, it removes them, and if there aren't, it creates them. I didn't have to change much. The biggest thing I changed (only had to because I forgot it...
  3. Replies
    6
    Views
    1,156

    I don't think you even need the variable names....

    I don't think you even need the variable names. When I'm making a bunch of variables like that, I store them in an array, and then all you need to reference them is in the array. What I'm talking...
  4. What your problem probably is is that you are not...

    What your problem probably is is that you are not referencing the parents of your "pil" object. Your object's parents depend on where you used addChild, if you didn't specifically name a parent. So...
  5. Replies
    6
    Views
    1,156

    Call this function and they will disappear. ...

    Call this function and they will disappear.



    function removeLines():void
    {
    var linesLength:int = lines.length;

    for(var i:int = 0; i < linesLength; i++)
    {
  6. Replies
    10
    Views
    1,045

    So there are names inside your array, but they're...

    So there are names inside your array, but they're stored as Strings rather than movie clips. You could try storing them as movie clips, or there is a way of using a string as a reference.

    I...
  7. Replies
    3
    Views
    503

    OK. I'm about 80% sure this is right. You have...

    OK. I'm about 80% sure this is right.

    You have your code on the main timeline, on a different layer from everything else, right? Probably no keyframes on the code layer. So the code, specifically...
  8. Replies
    3
    Views
    503

    When you say go to the next frame, do you mean...

    When you say go to the next frame, do you mean the "lose" frame? I don't know if there would be a problem with referring to an mc that is on a different frame, but it is possible.

    An unrelated...
  9. Replies
    4
    Views
    696

    char.dy += timeDiff * gravity is what applies...

    char.dy += timeDiff * gravity is what applies gravity after you've jumped to make you fall down. I'm not sure what verticalChange is used for. Is it used anywhere else in your code? In this code...
  10. movieClipA.addChild(movieClipB) instead of...

    movieClipA.addChild(movieClipB) instead of addChild(movieClipB).
  11. Replies
    4
    Views
    696

    Well, as you probably know, the char.dy is simply...

    Well, as you probably know, the char.dy is simply the character's y direction, which is increased when you jump so the character moves up. The gravity is used to pull the character down until they...
  12. Oh. I knew it was something stupidly idiotic of...

    Oh. I knew it was something stupidly idiotic of me to miss. Thanks a lot!
  13. Have startx and starty be equal to your player's...

    Have startx and starty be equal to your player's .x and .y, then add or subtract whatever you need to have it come out where you want.

    If you don't want the bullets to come out of the player's...
  14. [RESOLVED] Strange array/for loop problem

    I'm working on a Tetris game. I've just started, and my general idea of how I'm making it is for a currentShape which is moving down, a nextShape which becomes the current, and an array of dead...
  15. Are you sure he isn't shooting anything? I had...

    Are you sure he isn't shooting anything? I had this same problem. The reason why it moved with the player at first is because you made the bullet a child of the player, which just means that any...
  16. Replies
    3
    Views
    1,488

    Efficient collision detection?

    I'm really sorry if this has been asked already. I couldn't find anything on it.

    I'm using AS3 with CS4.

    I was wondering what would be the best way to detect bullet collisions. The technique...
  17. Replies
    3
    Views
    449

    So the shorter one is "This is going to be an...

    So the shorter one is "This is going to be an array" and the new Array() says "This is an empty array"? OK. I think I get it now.
  18. Replies
    3
    Views
    449

    AS3: Why use new?

    I couldn't find the radio buttons that were supposed to be above the title, so I'm using ActionScript 3.0.

    I'm using Rosenzweig's Game Programming University to learn AS3, and in one of his...
  19. Replies
    8
    Views
    4,365

    On my computer at home, the sound doesn't work on...

    On my computer at home, the sound doesn't work on my Firefox 3, but it does work on IE 6. I just tried at my college, which has Firefox 2 and IE 7, and the sound works on both.
  20. Replies
    8
    Views
    4,365

    I've got Firefox 3, and I've noticed the same...

    I've got Firefox 3, and I've noticed the same thing. I didn't realize it works on IE though.
Results 1 to 20 of 20




Click Here to Expand Forum to Full Width

HTML5 Development Center