BlameThePixel!

BTForum » Main BTP Stuff » BlameTheGeneralDiscussion » Javascript...

Page: [1] [] [3]
[B]C1
Looking For Status
Send PM
Posts: 0
Threads: 0
Money: £0.18 (D)
(+ Friend)
Not online within the last half an hour
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]
[S]CBWhiz
Looking For Status
Send PM
Posts: 1044
Threads: 130
Money: £1343.20 (D)
(+ Friend)
Not online within the last half an hour
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]
[S]Zogger!
Looking For Status
Send PM
Posts: 3954
Threads: 62
Money: £93.82 (D)
(+ Friend)
Not online within the last half an hour
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]
[S]CBWhiz
Looking For Status
Send PM
Posts: 1044
Threads: 130
Money: £1343.20 (D)
(+ Friend)
Not online within the last half an hour
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]
[B]C1
Looking For Status
Send PM
Posts: 0
Threads: 0
Money: £0.18 (D)
(+ Friend)
Not online within the last half an hour
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]
[S]Zogger!
Looking For Status
Send PM
Posts: 3954
Threads: 62
Money: £93.82 (D)
(+ Friend)
Not online within the last half an hour

Quoted :: CBWhiz

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]
[B]C1
Looking For Status
Send PM
Posts: 0
Threads: 0
Money: £0.18 (D)
(+ Friend)
Not online within the last half an hour
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]
[S]CBWhiz
Looking For Status
Send PM
Posts: 1044
Threads: 130
Money: £1343.20 (D)
(+ Friend)
Not online within the last half an hour
Oh :P
Ok then you'll have to learn collision detection :D

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
An Avatar
Posts: 5183
Threads: 123
Mood: Refreshed
Money: £201.52 (D)
(+ Friend)
Not online within the last half an hour
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]
[B]C1
Looking For Status
Send PM
Posts: 0
Threads: 0
Money: £0.18 (D)
(+ Friend)
Not online within the last half an hour
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
An Avatar
Posts: 5183
Threads: 123
Mood: Refreshed
Money: £201.52 (D)
(+ Friend)
Not online within the last half an hour
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)
Not online within the last half an hour
Kuja Heads

________________
11.08.03 04:47
Post #12
[Twitter] [Hide Sig (0)] [Profile] [Quote]
[]The Pope
Decisive
Send PM
An Avatar
Posts: 5183
Threads: 123
Mood: Refreshed
Money: £201.52 (D)
(+ Friend)
Not online within the last half an hour
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]
[B]C1
Looking For Status
Send PM
Posts: 0
Threads: 0
Money: £0.18 (D)
(+ Friend)
Not online within the last half an hour
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
An Avatar
Posts: 5183
Threads: 123
Mood: Refreshed
Money: £201.52 (D)
(+ Friend)
Not online within the last half an hour
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] [] [3]

Post Reply

Jump To:


Your Comments:

Donate to BlameThePixel:
Donate to BTP Via PayPal


[22 Queries, Page Loaded in 3.271275 Seconds]

ShoutMeUp

Xmas Greetings from waka waka waka waka []Unvalidated EmailChristmasRiddle MERRY CHRISTMAS EVERYONE! []Spleet Except for Spleet. []TheAbdBoy Always bummin' a brother out. []Spleet Happy New Year everyone! But Spleet. []TheAbdBoy

Word Association

All

-10 Ago-

MiddleEastern []AlphaWolf camel [S]Bloopy toe []TheAbdBoy moose knuckle [S]Bloopy MeatLoaf []Spleet IdDoAnything4Lo ve []AlphaWolf rub n tug []TheAbdBoy tugboat []The Pope rope [S]Bloopy race []TheAbdBoy

-Latest-


Must be logged in to add new words

FictoLeague

You have to be logged in to vote...

Member Stats

Date: 21.11.24.
Members: 4731.
Latest: []Unvalidated Emailsdsakldsaldklasdsdsa
Active:
0 user(s)
1 guest(s)

On chat:
Lots of people

Files: 3330

Bloopy's Site
Get Firefox Get Opera Donate to BTP Via PayPal