Guest Red Ocktober Posted May 7, 2010 Share Posted May 7, 2010 ok... first off all this is all Aggror's fault... he's the one who's got me trying to come to grips with this lua stuff with his video tutorials... here's my problem... i can't figure out why i can't get the camera to move when i press the appropriate keys... here is the code... while AppTerminate()==0 do if(KeyDown(KEY_A)) then cam:Turn(Vec3(0,1,0)) end if(KeyDown(KEY_D)) then cam:Turn(Vec3(0,-1,0)) end if(KeyDown(KEY_W)) then cam:Move(Vec3(0,0,1)) end if(KeyDown(KEY_S)) then cam:Move(Vec3(0,0,-1)) end cube:Turn(Vec3(1,1,1)); fw:Update(); fw:Render(); Flip(0); end do i need to include a key constants file or something, or is the code totally off in deep space... thx also... strange things to note... 1- i can load the tunnels.sbx scene into the editor in beta 2.32, but not in the 2.31 editor... it just quits... 2- i can load the tunnels.sbx scene from a lua app in both 2.32 beta and 2.31, but can't load it from bmax app... it says can't find query.vert error but i know it's in the pak... 3- lua compiler is super quick... and compiled apps seem to be running pretty swiftly compared to earlier LW versions... probably my imagination... anyways... thx again in advance for any and all help... --Mike Quote Link to comment Share on other sites More sharing options...
macklebee Posted May 7, 2010 Share Posted May 7, 2010 i thought we already covered this here 1) the object scripts for lights were modified at one point so maybe that was part of the issue 2) what is your app path for your media in the bmax program? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted May 7, 2010 Share Posted May 7, 2010 i thought we already covered this here yes... yes we did... you're absolutely right... doing a refresher on it now... THANKS again Mack... --Mike Quote Link to comment Share on other sites More sharing options...
macklebee Posted May 7, 2010 Share Posted May 7, 2010 no problem... first time ive got to touch LE in over a month... so I understand about refresher learning... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted May 7, 2010 Share Posted May 7, 2010 yeah... i just got done filing a supplemental legal brief that wore me out, and it seems as if my mind is still recovering from it also, i'm too many programming languages in one sitting... i was doing something on the mac in c++ and trying to come to grips with this lua stuff again... and i wrote the lua code as i would in c++... i forgot to explicitly test the conditionals in the lua script... if(KeyDown(KEY_A)) doesn't seem to want to test true... i need to code it like this if(KeyDown(KEY_A)==1) for it to work... i'll be alright... it's almost bed time... hey, thx again for the help... --Mike Quote Link to comment Share on other sites More sharing options...
macklebee Posted May 7, 2010 Share Posted May 7, 2010 understand completely... RL comes first. also, you need to setup your profile to allow for PM's to be sent to you! I cant send you a PM because it looks like your account doesnt have it enabled. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Guest Red Ocktober Posted May 7, 2010 Share Posted May 7, 2010 will take care of that immediately... --Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.