Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Light, camera, action!
Light, camera, action!
2002-09-16, 6:32 AM #1
Need help.
I made these cool shootdodging keys... now i have a little problem with the cog... i need to make the player move sidewards, this is what i used:
Code:
jumpVel = VectorSet(2.0, 0.0, 0.0);

         playerVel = GetThingVel(player);
         newVel = VectorAdd(jumpVel, playerVel);
         DetachThing(player);
         SetThingVel(player, newVel);
         ClearPhysicsFlags(player, 0x100000);


but it makes the player move the x axis, not sidewards, but x-axis of the level [http://forums.massassi.net/html/confused.gif]

hlep me kthxbye [http://forums.massassi.net/html/smile.gif]

------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.
2002-09-16, 6:47 AM #2
Hmm, you might consider firing an object with a 'vel=(2/0/0)', and attaching the player to it...

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-16, 12:58 PM #3
How 'bout, using the same system that a graple hook uses, just a sideways motion only. I'll get it after soccer. [http://forums.massassi.net/html/wink.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-09-16, 1:44 PM #4
So you need a vector direction to the player's right or left? Just use GetThingRVec() to return his right. Scale the rvec by -1 to return the player's left. [http://forums.massassi.net/html/smile.gif]

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-09-16, 3:34 PM #5
DOH! *smacks head*

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-17, 1:16 PM #6
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
DOH! *smacks head*

</font>


What he said and did.


------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!