Andy Gilbert Posted August 13, 2010 Share Posted August 13, 2010 Hi could somone just start me off here as im lost. Basically upto now i have been using the script editor outside the leadwerks editor using a single script, loading a scene, objects ETC. But i want to be able to do the same in the leadwerks editor, it will be alot easier and faster, but im a bit lost how to do it. Dor instance, i have my scene, and what i want is when i press the game button the camera "goto a postion". And the one model i have in the scene to be able to e moved using the arrow keys. That would get me start on how i can then go forward with it. Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 13, 2010 Share Posted August 13, 2010 Hi andy, This script is a stripped version of the FPScontroller script. It allows you to walk, jump an look around. If you would have a switch (like the ones from tunnel.sbx) you can use the 'e' key to turn it on and off. Place it in the SDK/scripts/game folder. Via the options menu, adjust the game path to this script. fpscontroller - simple.zip You can also download this playerstart. It doesn't work perfect, but the player does start at the position. I will try to make a better one that actually points the player in the right direction. http://leadwerks.com/werkspace/index.php?/files/file/108-playerstart/ Quote Link to comment Share on other sites More sharing options...
Andy Gilbert Posted August 13, 2010 Author Share Posted August 13, 2010 Thanks Aggror ill have a look at them. The confusing thing scripts for models? If i want to for instance apply a force to a model, can i have its own scripts for doing that? Or do i have to somhow do that from the main game script? Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 13, 2010 Share Posted August 13, 2010 You can add the force via both game and class scripts. For a class script for instance, you can add the force to the object and make a nice little Lua menu that lets you set the force for every single object that you drag into the scene. 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.