Ask a Question related to Macromedia Director 3D, Design and Development.
-
ImLearningW3D #1
using two arrow keys to go diagonal in the 3d world
I am building a 3d world that will involve walking and flight. I want the user
to be able to walk around in the world using the arrow key; ie 'UP' goes
forward, 'Down' goes backward, 'Lefty strafes left and 'Right' strafes right.
Fairly simple, or so I thought. Can anyone offer any help with the lingo that I
need for this function?
Thank You
ImLearningW3D Guest
-
Arrow keys out of control - Wierd
Hi, I'm Illustrator deficient and just beginning the learning process of Illustrator CS utilizing the Total Training tapes. In lesson 3 there... -
arrow keys fail
Hi Folks, I published the completed example of the 'magic trick' director example, but on my PC using the arrow keys (or mouse click) fails to... -
MX Font Preview w/ Arrow Keys?
I just MX-ed my Freehand, but there seems to be a feature missing that I liked: I used to be able to select a text box w/ some type in it, then... -
arrow keys datagrid
Hi All, Bought the Flash MX datagrid component from Macromedia. Standard it does not handle the arrowkeys but they made an example on how to do... -
arrow keys in motif
I can't seem to get the arrow keys on the number keys to work in motif -- NetBSD 96key pc keyboard(with the ctrl key where god intended it) ... -
bgsBS #2
Re: using two arrow keys to go diagonal in the 3d world
sure, its quite easy
you have to assosiate events of arrow key hits, with 3D world commands
make a general script in the Cast, and make it:
on keyUp
--if the left arrow key was pressed:
member("your3Dscene").camera/model("name").translate(5,0,0)
end
and so on.
good luck!
bgsBS Guest
-
ImLearningW3D #3
Re: using two arrow keys to go diagonal in the 3d world
dear bgsBS,
thank you for your input. This seems quite similar to the scripting that I
was trying. The problem that I get is that one key will tanslate the camera
properly, whereas using the, for example, UP and LEFT arrow keys at the same
time won't translate the camera in the diagonal direction even when the
translation vector is set correctly, ie (5,0,-5). Does your suggestion work
around this descrepency or do you have the same effect that I do. Anyway,
thanks for your time in this matter.
ImLearningW3D
ImLearningW3D Guest
-
Newt99 #4
Re: using two arrow keys to go diagonal in the 3d world
-- on enterFrame in a behavior or frame script or on idle in a movieScript if
keypressed(123) then arrow_left = true if keypressed(124) then arrow_right =
true if keypressed(125) then arrow_down = true if keypressed(126) then arrow_up
= true if arrow_left then member('scene').model('name').translate(-speed,0,0)
if arrow_right then member('scene').model('name').translate(speed,0,0) if
arrow_down then member('scene').model('name').translate(0,0,-speed) if arrow_up
then member('scene').model('name').translate(0,0,speed) Cheers, Karl.
Newt99 Guest



Reply With Quote

