Page: [1] [2] [3] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
I'm creating a game and i was wondering how u would make someone shoot. Say you pressed Z to shoot. How would you create a function that emits small ----- for gun shoots. And ur trying to hit objects coming closer to u. I have the moving im pretty sure i have hte images ur shoot to get moving. And i have everythign else i need but just the shooting seems to trouble me
|
08.08.03 23:05 Post #1 | [Hide Sig (2)] [Profile] [Quote] |
CBWhiz
Looking For Status Send PM Posts: 1044
Threads: 130 Money: £1343.20 (D) (+ Friend)
|
you'd call a shoot initilizing function which creates a <span> or <div> containing your graphic or "---".
Then you would settimeout() for bullet moving funtion, which would keep track of how long the bullet has been alive for (and then kill it b/c you dont want it to go forward forever). Youd also need to add collision detection, but you know how to handle that.)
Its simple in theory, and hard in practice.
|
09.08.03 00:44 Post #2 | [Hide Sig (3)] [Profile] [Quote] |
Zogger!
Looking For Status Send PM Posts: 3954
Threads: 62 Money: £93.82 (D) (+ Friend)
|
yeh, what he said, but do you know how to do collision detection?
________________
You know I'm a dancing machine |
09.08.03 08:01 Post #3 | [Hide Sig (8)] [Profile] [Quote] |
CBWhiz
Looking For Status Send PM Posts: 1044
Threads: 130 Money: £1343.20 (D) (+ Friend)
|
Well I dont mean *true* detection of corse, I think that'd be near impossible.
He'd have to check the cordinates of the walls and stuff like he did on jetpack race
|
09.08.03 16:51 Post #4 | [Hide Sig (3)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
but this is a tad different since the thigns in this are moving which ands a twist to it. heres kinda wat im going for but with different pictures http://borntoworm.com/like_this.gif
its a combo of killing the dudes not die it last for 500 guys or until ur dead
|
09.08.03 18:38 Post #5 | [Hide Sig (2)] [Profile] [Quote] |
Zogger!
Looking For Status Send PM Posts: 3954
Threads: 62 Money: £93.82 (D) (+ Friend)
|
He'd have to check the cordinates of the walls and stuff like he did on jetpack race
Yes, but I did the collision detection with the walls on JPR
________________
You know I'm a dancing machine |
09.08.03 18:45 Post #6 | [Hide Sig (8)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
yes he did as i said some where else since at the time i didnt really get how to make that
|
09.08.03 18:48 Post #7 | [Hide Sig (2)] [Profile] [Quote] |
CBWhiz
Looking For Status Send PM Posts: 1044
Threads: 130 Money: £1343.20 (D) (+ Friend)
|
Oh
Ok then you'll have to learn collision detection
You could probably write a function that enumerates all objects and detects colission, but that's take a LONG time...
|
10.08.03 02:34 Post #8 | [Hide Sig (3)] [Profile] [Quote] |
The Pope
Decisive Send PM
Posts: 5183
Threads: 123 Mood: Refreshed Money: £201.52 (D) (+ Friend)
|
what have Boos got to do with worms or computers? Were you mentally scarred by a dungaree wearing, moustache twirling, pizza eating, Princess Peach saving, plumber person when you were young?
________________
Learn to look, look to learn. |
10.08.03 07:52 Post #9 | [Hide Sig (14)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
hmm i liked them. But as i said i dont really have any clue wat to shoot. If anyone has ideas then tell me.
|
11.08.03 00:49 Post #10 | [Hide Sig (2)] [Profile] [Quote] |
The Pope
Decisive Send PM
Posts: 5183
Threads: 123 Mood: Refreshed Money: £201.52 (D) (+ Friend)
|
George Bush Heads and Tony Blair Heads and Saddham Hussein Heads.
________________
Learn to look, look to learn. |
11.08.03 04:34 Post #11 | [Hide Sig (14)] [Profile] [Quote] |
TheAbdBoy
Single Send PM Posts: 4158
Threads: 322 Money: £1844.11 (D) User Tax: -99% (+ Friend)
|
Kuja Heads
________________
|
11.08.03 04:47 Post #12 | [Twitter] [Hide Sig (0)] [Profile] [Quote] |
The Pope
Decisive Send PM
Posts: 5183
Threads: 123 Mood: Refreshed Money: £201.52 (D) (+ Friend)
|
is that one of the guys from ur story?
________________
Learn to look, look to learn. |
11.08.03 06:17 Post #13 | [Hide Sig (14)] [Profile] [Quote] |
C1
Looking For Status Send PM Posts: 0
Threads: 0 Money: £0.18 (D) (+ Friend)
|
no hes the guy from FF9. But hmm i like these ideas. But for now in beta ill use ghosts.
|
11.08.03 16:38 Post #14 | [Hide Sig (2)] [Profile] [Quote] |
The Pope
Decisive Send PM
Posts: 5183
Threads: 123 Mood: Refreshed Money: £201.52 (D) (+ Friend)
|
Can they atleast wear ties?
________________
Learn to look, look to learn. |
15.08.03 08:04 Post #15 | [Hide Sig (14)] [Profile] [Quote] |
Page: [1] [2] [3] |
Your Comments: