Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / First Person Sword Fighting

Author
Message
hmm
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location:
Posted: 21st Nov 2004 02:04 Edited at: 21st Nov 2004 02:09
Fps sword fighting with direct control over where the sword swings. Hold left mouseclick to swing sword. right mouseclick raises shield and control = crouch.
w,a,s,d = move



what do you think? would it work in game?

coincidence? how about pure cosmic convergence!
Paynekiller Karnage Warrior
20
Years of Service
User Offline
Joined: 14th Jun 2004
Location: Exploring the Internet with Tron
Posted: 21st Nov 2004 02:12
Only a gray screen comes up for me. Is it because i'm using DBPro?

"Talking(typing) in computer language is like talking to a human. You must talk(type) clearly.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 21st Nov 2004 02:39
it works 100% for me and i also use DBPRO.

Quote: "what do you think? "


WOW! Its great! Really good! Thats a nice work you got there! .

Quote: "would it work in game?"


YES!!!!! You could make a REALLY cool game with this code





Waggames

wanna join Waggames?
then visit our site at : http://www.freewebs.com/waggames
my old forum name was: The Nerd
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 21st Nov 2004 04:34
Pretty good. With some decent enemies and media then you could use it in a game. One bug though. If you swing the sword whilst turning then the sword spins the wrong way.

Realms Of Tutopia: Rise Of Evil
http://www.freewebs.com/elbsoftware/index.htm
hmm
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location:
Posted: 21st Nov 2004 04:44
umm....thats just you doing special spinny sword tricks....
I'll have a go a sticking some media and ai in to make a little combat demo. I was thinking ths could go into some medieval 'Battlefield' type of game, or a fps RPG (alot easier than 3rd person i reckon). What do you think?

coincidence? how about pure cosmic convergence!
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 21st Nov 2004 05:18
It could be a remake of The Elder Scrolls: Arena.

Don't know why I like that game so much, just the gigantic world to wonder around, and the ability to do, whatever.

Sounds good to me.

You are not alone.
Mr Underhill
21
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 21st Nov 2004 05:24
Ugghh, I got about 17 fps on that code.
Looks great but it's really slow (or is it just me?).

Quote: "A kilobyte is 1024 bytes, not 1028.
I mean.... not.. that i.... new that already.... i figured... maybe... CRUD! IM A NERD! -Ion Stream"
hmm
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location:
Posted: 21st Nov 2004 06:13
17! dont know whats going on there.

anyway, started putting in media for sword and shield and improving the system greatly. Going to make a bow and arrow also! if I have time that is...(busy)

coincidence? how about pure cosmic convergence!
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 21st Nov 2004 07:14
It's not 17 FPS, that's scan code.

There is only one way to package shaolin: Shaolin Soccer...
Paynekiller Karnage Warrior
20
Years of Service
User Offline
Joined: 14th Jun 2004
Location: Exploring the Internet with Tron
Posted: 21st Nov 2004 09:42 Edited at: 21st Nov 2004 09:47
o wait now it works for me (i wonder what happened? ) Very innovative indeed! I can see and Elder Scrolls IV coming from this code I wonder what would happen if your combine this code with NathF's battle engine?

"All yourr code are belong to me."
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 21st Nov 2004 09:52
Not bad, nice and simple.



A book? I hate book. Book is stupid.
(Formerly known as Yellow)
Mr Underhill
21
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 21st Nov 2004 10:39
Quote: " It's not 17 FPS, that's scan code. "

That explains why it was reading 0 for a while ...it was still pretty slow, though...I wonder why...

Quote: "A kilobyte is 1024 bytes, not 1028.
I mean.... not.. that i.... new that already.... i figured... maybe... CRUD! IM A NERD! -Ion Stream"
Wiggett
21
Years of Service
User Offline
Joined: 31st May 2003
Location: Australia
Posted: 23rd Nov 2004 16:59
whoa shouldposted in my game theory thread. anyway i gave it a go, said 17 fps then 0 when i wasn't moving. but it ran fine so it lied to me. and yeah you move the mouse the wrong way and the sword spins back on you. not great when working out the collision, but i like the view bob.

hmm
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location:
Posted: 24th Nov 2004 06:26
oh yeah, i forgot to post an updated example with collision implemented...

coincidence? how about pure cosmic convergence!
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 24th Nov 2004 07:06
@Uberwigget, did you not read what I said? That is the scane code, not the FPS!

There is only one way to package shaolin: Shaolin Soccer...

Login to post a reply

Server time is: 2024-11-23 17:27:19
Your offset time is: 2024-11-23 17:27:19