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 / Swinging a Sword using the mouse

Author
Message
hmm
21
Years of Service
User Offline
Joined: 11th Oct 2003
Location:
Posted: 26th Dec 2005 01:28
Instructions are in the demo. You basically swing the sword round the player by circlig the mouse about the player. I do plan to develop this, think it could lead to quite a quirky hack and slash system. Download the attached image to the same folder if you want an added special effect;



Attachments

Login to view attachments
Zedane
20
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Milky Way, Earth
Posted: 26th Dec 2005 02:09
Very cool. I wish i had thought of it. Tack on a cool Kirby like chara, and limb on this arm and sword. And you have got your self a pretty cool game.


around here.. normal's just a setting on a hair dryer
TKsFox
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location: No no no - Its not the Cyberspace
Posted: 29th Dec 2005 11:02
Thats really kewl - u should create sum motion blur FX...

It's me...
Tapewormz
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 30th Dec 2005 12:50
This program hurts the teflon tape on my mouse.

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th Dec 2005 16:56
Reminds me a bit of madness combat.

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.dbspot.com
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 2nd Jan 2006 15:46
you should really make it possible to move the sword up and down too.
add rotation limits and combo mousemovement. allthough you get a nice combo that you make up by yourself by using this method.

in an rpg this would be awesome, the "sword skill" would determine how fast the player can swing his sword and for how long etc.

great work


The Cowboy Game progress 17% (bullets)
Zedane
20
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Milky Way, Earth
Posted: 6th Jan 2006 04:10
You definatly need to take this somewhere..if you dont, i will!


around here.. normal's just a setting on a hair dryer
Diablos
19
Years of Service
User Offline
Joined: 15th Oct 2005
Location: meh?
Posted: 7th Jan 2006 01:36
just a couple of suggestions:

1. you should make the sword more sensitive to the mouse movement.
2. you should have some way of swinging the sword overhead. you could probably just make it so that when you right click it swings overhead or something i dont know.

i would edit your code and repost it so you get my point but unfortunately im only a beginner and dont know how

-Pain is temporary, pride is forever.

Login to post a reply

Server time is: 2024-11-23 07:16:52
Your offset time is: 2024-11-23 07:16:52