|
-
Senior Member
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.
-
Senior Member
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.
-
ʞ33ƃ
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
-
Senior Member
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.
-
Watt on Earth?
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..
-
w00t
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.
-
Senior Member
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.
-
incredibulus-actionscriptum
-
w00t
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.
-
Senior Member
My god magnetos. You nearly blinded me with all those animated gifs.
The future belongs to those who prepare for it today.
-
Memberette
-
Senior Member
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.
-
Memberette
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 )
-
Senior Member
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.
-
Senior Member
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
-
Illuminatus!
-
Always Twirling Toward Freedom
The LSD's could create a copy image of yourself to fight along side you
-
Senior Member
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.
-
Illuminatus!
sorry devnull
i dont always mean what i say
i just flies out
no hard feelings
-
Illuminatus!
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|