Jump to content

Daimour

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by Daimour

  1. GIMP - more or less a PhotoShop Clone
  2. Don't forget about tables (grids). It's common way to manage key bindings, table of records, list of players, character attributes, list of saved games, list of levels etc. So making universal GUI is not the easiest task.
  3. I think it would be great to put it to "articles" section and to "store" (for file).
  4. It's pleasant to hear. I see. You trying to use a spark picture with trail. Try to use a star-like (or roundish shape) spark without trail. And use the motion for creating trail effect (like in video).
  5. Why? I can't see why you can't use usual LE2-emitter for creating sparks effect.
  6. You can set rotation speed with SetEmitterRotationSpeed(). But it sets "speed" only, while "direction" of rotation for each particle will be chosen randomly. Why is that? Recall my old video:
  7. It looks like something wrong with including "linkedlist". Try to copy/paste this line from road_node.lua: require("Scripts/linkedlist") And check paths.
  8. "material" - is not a material but material name (path). Try this: path=self:GetKey("material") material = LoadMaterial(path) shader=GetMaterialShader(material) And don't forget to use "abstract::" for paths. It will be more secure.
  9. Yes. Name of entity, path to model, path to sound, some custom property... As you want.
  10. Try to use "Active" property. (If you use standard sound entity of course.)
  11. Daimour

    Show Boxes

    Try DebugEntities().
  12. And I am just making my game entirely in Lua and quite happy with it.
  13. How can you read anything on the picture?...
  14. Try to add a simple lua-script for your model (muscleblack.lua) with code: require("scripts/class") local class=CreateClass(...) It will register your model in table "objecttable", if you want so.
  15. 1. Of course you can make them dipper. Just edit your pools models in your 3D editor. 2. What's the connection between your pools and your buildings? 3. If you use default Leadwerks water plain, you will get infinite plain on some highness, And everything under this plain will be under water. So you couldn't walk to basement of buildings for example.
  16. Yes. This file is present in 2.5. But I think it's outdated and is not used now.
  17. And what about lower resolution? Can you turn on "extra" statistics and make screenshot?
  18. You can create your vehicle directly in C++. It means to convert entity script code to C++. So you will have access to all it's parts directly in C++.
  19. Look at fpscontroller.lua. You will find example there. --Use objects if KeyHit(KEY_E)==1 then pick=CameraPick(camera,Vec3(GraphicsWidth()/2,GraphicsHeight()/2,2.0),0,0) if pick~=nil then repeat if pick.entity:GetClass()==ENTITY_MODEL then break end pick.entity=pick.entity.parent until pick.entity==nil if pick.entity~=nil then pick.entity:SendMessage("use",controller,0) end end end
  20. 1. Before main loop for each entity that may be picked up set the flag: SetEntityKey(entity, "pickable", true) 2. When trying to pick up something call CameraPick() to find intersection with line of sight. 3. Check that intersection for entity class. So it may be terrain or mesh or something else unwanted. Here you need to find parent entity from found mesh or ignore unwanted entity class. 4. Check if entity is pickable by calling: GetEntityKey(entity, "pickable") 5. Do what you need with pickable entity.
  21. Try to watch "hiding password" video here: http://www.leadwerks.com/werkspace/files/file/329-obfuscator2lua/ May be it will help.
  22. Yes. I tested. It's strange. It works for me. May be it depends on videocard or driver... It's used for transparent objects mostly. http://www.leadwerks...aterials#Syntax
  23. Performance depends on bodies interaction mostly. The more interactions the more performance loss. You may try it easily.
  24. Josh already said about "zsort". If set zsort=0 all works fine.
  25. All entities already have physics bodies. But they inactive until you set collision group or mass for them.
×
×
  • Create New...