PDA

View Full Version : Can't figure this out...



Checksum
11-13-2003, 09:46 PM
I'm thinking of a hand to hand control system.

What I'm hoping to do is something like how in many fighting games, you press things like back-forward-attack to do new moves.

Is there any way to detect the directional change of the player before an attack without a pulse?

I'm hoping to be able to do a different attack by doing like, forward forward fire, stuff like that.

Help me or something.

------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.

Edward
11-14-2003, 12:08 AM
Have a look in the weap_saber.cog. You'll find how they get the different animations for different directions you run in.

/Edward

lucky_jackpot
11-14-2003, 02:25 AM
With MotS, you could use the key trapping concept (which would make life so much easier for you http://forums.massassi.net/html/wink.gif).

However, the only thing that strikes me off the top of my head would be to agree with Edward. Without that proposal, I should imagine if you set up certain moves to be performed equalling an int format and then kept variables for directional purposes and incremented them when a corresponding action was taken, then you could possibly find a way of doing it....? http://forums.massassi.net/html/confused.gif http://forums.massassi.net/html/redface.gif

Hope this (somewhat) helped http://forums.massassi.net/html/biggrin.gif

-Jackpot

------------------
Are you feeling lucky, cuz if you are, get your hands off me... ;)

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)

Checksum
11-14-2003, 09:16 PM
Edward, NO. Just... NO.

I know an unrealistic amount about cogging, so believe me, I know about getthingthrust.

That's not what I want at all.

What I want is to do like in some games and press (move forward),(move forward),(attack) and have it be different than if I pressed (move forward),(attack) in a sequence.

[This message has been edited by Checksum (edited November 14, 2003).]

Emon
11-14-2003, 09:56 PM
If you know so much, you'd know you can get the thrust, wait for lack of thrust, then thrust again... That's direction + direction there. Use IsThingCrouching(thing) for down, and look for direction of velocity and attach flags to detect jump.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.

Checksum
11-15-2003, 01:43 PM
Well yeah, that's obvious - is there a way I can do it without a constantly running pulse?

------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.

Emon
11-15-2003, 01:52 PM
No. What's wrong with a pulse?

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.

Checksum
11-15-2003, 09:43 PM
Well, two things: For one, it lags.

Secondly, unless you timed the key presses just perfectly with the pulse, it would be hard to use, unless you had an unrealistically fast pulse, which brings us back to problem one.

Hell, with a pulse it'd be hard to detect anyway because thingthrust doesn't just go straight to zero when you release the key - it quickly but smoothly drops to zero.

All in all, I say - screw it! It sounds like more trouble than it's worth. This thread is over.

------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.

SaberMaster
11-16-2003, 11:46 AM
Wow, looks like we don't have a forum rule for temper tantrums. http://forums.massassi.net/html/tongue.gif

------------------
Author of the JK DataMaster (http://www.geocities.com/sabersdomain/files.html), Parsec (http://www.geocities.com/sabersdomain/files.html), Scribe (http://www.geocities.com/sabersdomain/files.html), and the EditPlus Cog Files (http://www.geocities.com/sabersdomain/files.html).

Emon
11-16-2003, 12:13 PM
Run the pulse locally, and don't check for exact velocities, only ranges.

------------------
Bassoon, n. A brazen instrument into which a fool blows out his brains.