A Flash Developer Resource Site

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 21
  1. #1
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785

    game test - check it out

    Hey guys! I just wrote something up this morning that I thought you might want to see. I was just thinking to myself, how would I go about making it appear that bullets hit a wall instantly, so I did it. Its some pretty crazy code:

    The Nameless Uzi Game

    I'm in the process of adding a pistol in the other hand that you'll be able to shoot in a different direction than the uzi. It'll be cool.

    Oh yeah, a couple cool features:
    • no hitTest. thats right, pure math baby!
    • gun isn't 100% accurate. there is a cone of bullets
    Last edited by devnull_2k; 09-30-2002 at 06:23 PM.
    The future belongs to those who prepare for it today.

  2. #2
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785
    New version. I added the pistol.

    A & D to move
    Hold spacebar to freeze pistol position

    Akimbo Styles

    The bullets off of the pistol aren't quite working yet, but they will be soon. Soon I'll add some immobile enemies to mutilate.
    The future belongs to those who prepare for it today.

  3. #3
    ever play the game abuse? it was a dos game. was pretty sweet. could make it so the arrows move and mouse aims the gun, pretty sweet.

    This would work awsome..

    Nugget

  4. #4
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785
    I don't understand. My game is just like that.

    the "A" and "D" buttons move the character (art is still in production, heh). I chose to use these over the arrow keys so that you can press the spacebar to freeze the pistol.
    The future belongs to those who prepare for it today.

  5. #5
    Watt on Earth? Jemadah's Avatar
    Join Date
    Feb 2001
    Location
    Whistler, Canada.
    Posts
    226
    i like it, now you need some bad dudes to blow they're brains out, ha ha ha ha ha ha ha.. i'm not evil..

  6. #6
    w00t PrED32's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    529
    I cant view the file, but I was about to program a similar sounding thing tonight...

    The psuedocode is in my head, I cant see it to be that difficult.

    Did you do it by stepping thru points, like moving it thru its lifespan in one frame? Or did you just check to see if an intersection would occur at a specific spot.. eg. if your checking horizontal collision, you step through the possible objects it could collide with, and then just see if the bullets path would intersect?

    I beleive the second would be the better one.. and if you restrict the firing to horizontal it would be stupidly easy to implement.

  7. #7
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785
    Actually, interesting that you say that, because I tried the first method in the beginning, but it would crash Flash player. While loops on an enterFrame aren't good.

    So I went with the second method. Its line to line collisions, but not restricted to the horizontal (so you have to test for coincident or parallel lines).

    Here is the new version:
    Payback
    The future belongs to those who prepare for it today.

  8. #8
    incredibulus-actionscriptum magnetos's Avatar
    Join Date
    May 2001
    Posts
    2,160
    nice job devnull that reminds me of earth jim worm
    very cool game


  9. #9
    w00t PrED32's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    529
    Oh.. and one thing... Put your mouseMove code also in mouseUp code && your spaceKeyUp code, cause you can have the pistol pointing in the wrong direction even when space isnt down.

  10. #10
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785
    My god magnetos. You nearly blinded me with all those animated gifs.
    The future belongs to those who prepare for it today.

  11. #11
    Memberette GameGirl's Avatar
    Join Date
    Dec 2001
    Location
    the Netherlands
    Posts
    177
    Nice, looking forward to something evil to shoot at in the next version (tomatoes?)

    magnetos: it is Earth Worm Jim! (sorry to correct you like that, but he is my hero )


  12. #12
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785
    haha, um. no.

    The Feds actually. I have a storyline. See, you're this drug dealer. While out of your apartment, the feds bust your partner and take your stash. You're not too into this, and you're going to do something about it, by killing hundreds.
    The future belongs to those who prepare for it today.

  13. #13
    Memberette GameGirl's Avatar
    Join Date
    Dec 2001
    Location
    the Netherlands
    Posts
    177
    Ooh, I like that drug dealer part (being from the Netherlands).

    So will it involve a bit of moving around then also? (like a nice intro movie showing you entering your appartment, discovering partner & (more importantly) stash are gone, you heading out on the street, shooting feds whilst making your way to the feds headquarters to finally get back the dope?) (like I said, I am Dutch and that would be a nice reward at the end of the game )

  14. #14
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785


    Its not just going to be weed. I'm thinking that they'll be drug related powerups. And yes, moving.

    Meth - Speed Increase
    Weed - Better Aiming (I always find my motor skills are great when high)
    LSD - I dunno, just some cool hallucinations?
    Heroin - Armor Up (you can take bullets and not even feel them, haha)
    Bags of Chips - health
    Last edited by devnull_2k; 10-03-2002 at 05:43 PM.
    The future belongs to those who prepare for it today.

  15. #15
    Senior Member mbenney's Avatar
    Join Date
    Mar 2001
    Posts
    2,743
    have a 2 health bars. a normal one and one for the munchies, if you cant get some food you die

    personally never done drugs

  16. #16
    Illuminatus! fospher.com's Avatar
    Join Date
    Jan 2002
    Location
    5th Dimension
    Posts
    2,185
    stoner = paranoid
    no pothead would go and kill random cops for missing weed
    and if cops take his stash they're taking him with it

    better make an escape from county jail scenario


    and the graphics suck
    i like the shooting however

    sorry devnull but instead of kissing your butt i decided to tell u what i think

  17. #17
    Always Twirling Toward Freedom pooon's Avatar
    Join Date
    Oct 2001
    Location
    On the sunny beaches of Canada
    Posts
    896
    The LSD's could create a copy image of yourself to fight along side you

  18. #18
    Senior Member devnull_2k's Avatar
    Join Date
    Oct 2001
    Location
    Limehouse, Ontario - Never heard of it? Not surprised.
    Posts
    785
    whoa, that was pretty harsh fospher. if i were to guess, i would say that you're getting a bit defensive. for what reason?

    had you read, this isn't just about weed. if you knew many drug dealers, you'd find that the bigger ones tend to diversify. this guy is seriously ****ed up on meth and heroin. i think he'd want his stash back. and he was out of his apartment when the cops came. they took his partner who he has to rescue.

    so is my game realistic? no... but who cares. the storyline makes enough sense to work, so don't get all teary on me baby boy.

    and about the graphics, i just threw some stuff in there to test my idea. i'm a programmer, not an artist. i'll definately spend a bit of time on them when i continue.

    and pooon, great idea
    Last edited by devnull_2k; 10-03-2002 at 11:54 PM.
    The future belongs to those who prepare for it today.

  19. #19
    Illuminatus! fospher.com's Avatar
    Join Date
    Jan 2002
    Location
    5th Dimension
    Posts
    2,185
    sorry devnull
    i dont always mean what i say
    i just flies out
    no hard feelings

  20. #20
    Illuminatus! fospher.com's Avatar
    Join Date
    Jan 2002
    Location
    5th Dimension
    Posts
    2,185
    ps i know drug dealers that twitch when sleeping cause of their state
    and buy the stuff by pound



    but i would like to keep this a game forum
    (aka edMack wouldnt like this)

Posting Permissions

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




Click Here to Expand Forum to Full Width


HTML5 Development Center