Jump to content

Roland

Members
  • Posts

    2,953
  • Joined

  • Last visited

Everything posted by Roland

  1. Dont! Download VS2013 and off you go
  2. Yes.. adding a mass solved that problem
  3. Thanks a lot Rick. Will add mass to them then.
  4. I tested the Map hook but it works partially. In the attached image you can see my hook which prints the name of each object sent to the hook by Map::Load. The only entity seems to be the light. The two boxes in the scene never shows up in the hook. Any suggestions ? According to the docs EVERY entity loaded will reach the hook Map::Load This function loads a Leadwerks map (*.map) file. Syntax static bool Load(const std::string& path, int flags=LoadScripts, const uint64_t fileid=0) static bool Load(const std::string& path, void hook(Entity* entity, Object* extra), Object* extra=NULL, const int flags=LoadScripts, const uint64_t fileid=0); Parameters path: the file path to load the scene from. hook: pointer to a function that will be called for each loaded entity in the scene. hookname: script function name that will be called for each loaded entity in the scene.
  5. Yeah.. I must have been blind to miss that Thanks
  6. Sounds great. Where is that documented.
  7. Is there any official way to find an entity in a loaded map using C++.
  8. "The way to go" is a never ending change of history
  9. Documentation void SetInput(float angle, float move, float strafe=0, float jump=0, bool crouch=false, float maxaccel=1) Reality void SetInput(const float angle, const float move, const float strafe=0, const float jump=0, const bool crouch=false, const float maxaccel=1,const float maxdecel=0.5, const bool detailed=false) http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitysetinput-r706
  10. Bug or not. However I think Blend::Invisible is missing in Blend.h At least I if you check the LUA code for FPSPlayer its referring to a blend-mode = 5 for invisible. #include "../Leadwerks.h" namespace Leadwerks { class Blend//lua { public: static const int Solid;//lua static const int Alpha;//lua static const int Shade;//lua static const int Light;//lua static const int Mod2X;//lua static const int Invisible;//<<<< add this (=5) }; }
  11. Very interesting stuff. Thank's Guppy
  12. Yes. Good for everyone to know. else its stated here http://www.leadwerks.com/werkspace/page/documentation/_/user-guide/getting-started/programming-with-c-r58 "Leadwerks uses Visual Studio 2013 for Windows, "
  13. Open c:/Users/Owner/Documents/Leadwerks/Projects/la/Windowns/la.sln in Visual Studio and compile both Debug and Release
  14. Its told in the first post
  15. Hahaha.. so for me front is back then. Cool I can accept that
  16. Is me or the editor that doesn't know what is front and back I have always been assuming that x points right. Isn't front view actually showing back?
  17. That wrench looks really great
  18. Calling a Lua Script function from C++ without arguments works just fine. No problem. But when it comes to bringing along an argument I need some hint. Here is an example. LUA: Script.myval = 10 function Script::increment() self.myval = self.myval + 1 end function Script::add( val ) self.myval = self.myval + val end C++: (assuming we have the entity to which the script attached) entity->CallFunction( "increment" ); // works fine. no problem Any idea how to add argument for the call of "add" ? I understand that this has to be done using the Interpreter class. But how ?
  19. I agree with you Rick and have actually change my naming to exactly what you says above. Josh, regarding mixing an input and an output ... naaaah. That only leads to confusion. Not a good idea
  20. What amazes me is that whenever I ask a simple question it derives into something else. In this case I started by just asking what the status on 64-bit was, got an answer from Josh on that, which I could accept. All good. Then I made a suggestion and that seemed to be out of line for now. Again I accepted that without discussion. Where have I said something about that I need 64-bit to make a game better or that I can't live without a GUI (I have made a working GUI myself already). It must be possible to ask simple questions without getting dragged into some weird assumptions on what may or may not bee behind the question. Anyway, all OK YouGroove. Summary: - I asked two questions and they got an answer. I'm satisfied with that. - I did not go into anything about art, art-pipeline or anything else. - I miss some public plan for the future of the engine, but can live with that. Cheers
  21. @YouGroove. You do not cease to amaze me
  22. This will draw a red rectangle when attached to a pivot. function Script:PostRender(context) context:SetBlendMode(Blend.Alpha) context:SetColor(1,0,0,1) context:DrawRect( 100, 100, 200, 200) context:SetBlendMode(Blend.Solid) end You should not call Clear.. that's done in the App:Loop already
×
×
  • Create New...