A Flash Developer Resource Site

Search:

Type: Posts; User: adamvan101

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    6,586

    ahh yes that's what i was looking for, but i...

    ahh yes that's what i was looking for, but i couldn't get it to work lol so i tried the other suggestion and screwed it up with || not &&. but thanks!
  2. Replies
    4
    Views
    6,586

    ahh yes thank you! i feel dumb now -- i was using...

    ahh yes thank you! i feel dumb now -- i was using || instead of &&

    thanks again
  3. Replies
    4
    Views
    6,586

    [AS3] command?

    i'm pretty sure there is no <is in between this number give or take 5 values> command, so how would i say:

    _root.mcMain.y <is in between> this.y <plus or minus> 5

    thanks for all help -- much...
  4. Wow thanks a lot for all your help. you've really...

    Wow thanks a lot for all your help. you've really done a lot and i totally appreiciate it. thanks again. it works now :D
    adamvan101
  5. i'm sorry... my imcompetance is probably...

    i'm sorry... my imcompetance is probably frustating you. first, the "+180" is because the character's starting rotation is 180. so i need that to turn him around. second, i tried the first thing - my...
  6. sorry i went on vacation - i hope you're still...

    sorry i went on vacation - i hope you're still there.
    my character rotation setting things are

    char.onMouseMove = function(){
    var __x = _xmouse-this._x;
    var __y = _ymouse-this._y;...
  7. i dont even know exactly what it was. the best i...

    i dont even know exactly what it was. the best i can say is the bullet appeared in random places near the character everytime
  8. i tried to do that. i had this: ...

    i tried to do that. i had this:

    setProperty(bullet, _x, char._x+L*Math.cos(angle));
    and same with y but Math.sin.
    L = 15, then i tried with 30. do neither worked. do the values for L seem right?
  9. i definitely will read about vectors haha. thanks...

    i definitely will read about vectors haha. thanks for a more detailed answer. one queston: my game is a birds-eye-view so its slightly different than that robot one. should 'L' be the length from the...
  10. haha i'll say. i may experiment AFTER i get...

    haha i'll say. i may experiment AFTER i get everything working :D
    for me, as a huge AS beginner, simplicity is bliss
  11. cos/sin * distance from guntip to rotation point?

    hello,
    i want to get shot bullets to appear at the tip of the gun instead of the center of the body. there's a similar thread here (actually its exactly what i want) but i dont understand the...
  12. i know they're useless, i was just seeing if they...

    i know they're useless, i was just seeing if they did anything. nope lol. so when i clean it up as you suggested... (testing it now :D)
    :O
    :)
    thanks! it works! my gosh that was crazy eh? again,...
  13. Replies
    14
    Views
    3,059

    not gonna lie - i have no problem with the...

    not gonna lie - i have no problem with the graphics. they could always be improved but the only change that i could think of is making the tank smaller like someone said earlier. also, before each...
  14. lets see whats useful... waitUntil = 0;...

    lets see whats useful...


    waitUntil = 0;
    function shoot1() {
    <a bunch of code, if you need some of this i can add it>
    waitUntil = ((new Date()).getTime() + 333)
    }
    function shoot2() {
    <same...
  15. then i got an error a function call on a...

    then i got an error

    a function call on a nonfunction was attempted

    from the way that sounds it seems like it doesn't know that my functions exist, but i put them above the call.
  16. its not working now. i set breakpoints and...

    its not working now. i set breakpoints and debugged and it went to the call to the function but never entered the function. is there anything wrong this this line for calling the function:
    ...
  17. ok i'll try this one out if i get some time today...

    ok i'll try this one out if i get some time today and post back my success level haha. thanks for sticking with me. i'll post soon
  18. wont that make it so after you click you wait...

    wont that make it so after you click you wait soso number of milliseconds, then the bullet fires?
  19. ok that didn't work. let me try to explain in...

    ok that didn't work. let me try to explain in more detail what i'm trying to acomplish. this is a shooting game, and after you click it goes to an onMouseClick function. within that function are 10...
  20. i'll try out that second approach - seems the...

    i'll try out that second approach - seems the best for what i'm trying to acomplish. thanks - i'll post how it goes
  21. oh, thank you very much

    oh, thank you very much
  22. i did that. i moved the setInterval part to after...

    i did that. i moved the setInterval part to after the function - it still didn't work any differently
  23. [as2][help?] simple (i hope) timer problems?

    hey,
    so i have a timer that i was trying to use to separate gunshots but it doesn't work.

    if (shoot1== true){
    <my code to shoot>
    shoot1 = false;
    setInterval(shoot1again, 800);
    function...
  24. Replies
    1
    Views
    1,373

    your artisitc skills are very good. but as a...

    your artisitc skills are very good. but as a templet goes, no. you gotta start yourself buddy. we all wanna make a game and get it sponsored but its just not that easy - if it were, there'd be none...
  25. bullet motion from center of screen to cursor

    hello all,
    how can i get a bullet (duplicated movieclip) to move from where it is to the x and y coordinates of the mouse when i click? so far the click duplicates the bullet and moves it to the...
Results 1 to 25 of 25




Click Here to Expand Forum to Full Width

HTML5 Development Center