Jump to content

dennis

Members
  • Posts

    469
  • Joined

  • Last visited

Posts posted by dennis

  1. Do you mean from a user interface perspective or from a programming perspective (as in the domain model)?

     

    The Programming aspect in combination with the graphical interface... but like:

     

    100 health.

    when under water for 30 seconds life decreasing. and then on 0 you will respawn at start position.

    and when life decreases the health bar will decrease too.

     

    how is this possible? and any manuals for this?

     

    Cheers!

  2. I modified the character controller which is provided by LE Engine. it's LUA coded. and I made it an function. so it could be loaded very easy in my scene loader.

    if you like to I can give you the full code :)

    it's quite working and great to use

  3. Here would be one quick and dirty way

     

    showMenu = false
    
    function ShowMenu()
      -- draw your menu here
    end
    
    if KeyHit(KEY_ESCAPE) == 1 then
         showMenu = true;
    end
    
    SetBlend(1)
    ShowMenu()
    SetBlend(0)
    Flip(0)
    

     

    That's pretty basic. What I do with stuff like this is create states. A simple state could have an Update() and Draw() function. More complex can have transition methods, but in Lua I do something like:

     

    
    function MainMenuUpdate()
      -- example might be looking for the mouse click over a button and set currentState variable to a different state which will route it into that states functions that you create
    end
    
    function MainMenuDraw()
    end
    
    currentState = "main.menu"
    
    -- create the table and store functions for each state
    gameStates = {}
    gameStates["main.menu"].onUpdate = MainMenuUpdate
    gameStates["main.menu"].onDraw = MainMenuDraw
    
    
    --  main loop
    while(...)
      -- call the update on whatever state we are in. inside these states is where we can change the currentState variable
      gameStates[currentState].onUpdate()
    
      gameStates[cirrentState].onDraw()
      Flip()
    end
    

     

    Then you can get fancy with transitions because this idea above just instantly switches states, but transitions can make for cooler looking transitions between states.

     

    awesome, and whats the best? to use images or the DrawRect variable?

    and how can I add those?

     

    the easier thing for you would be telling me where I can find A manual for this kind of things instead :) if you like to offcourse

  4. Hello all,

     

    is there a possible way, when I press the escape button it will show up a menu? normally I use

    SetBlend(1)
            --code for menu which I need to know.
    SetBlend(0)
    Flip(0)
    

     

     

    and if it's possible how to make a game menu in lua?

    such as game preloader.

     

    and my second question is:

     

    when I open up my game in full screen (start.Lua File) it always shows command window.

    I opened a thread for another language to accomplish that. but how to do that for LUA?

     

    sorry for the questions. I'm still learning

     

    Cheers!

  5. I think most people here use 1 unit = 1 meter .. it's not hardcoded anywhere (but you'd want to change the default cull and lod ranges) so you could scale everything else to dexsoft scale I think.. but since i'm from europe I've never used anything other than meters so this scale seems natural to me :)

     

    I'm from europe too, but normaly using (in game style) pixels. because everything is based on it.

    thanks for the help

  6. I don't remember currently, but may be you can avoid the prompt using a Form application instead of Console application, though I think it isn't included a template for that but you can easily do that, just try to create a new Form application project, add the reference to LE.NET.dll (it is in the SDK folder) and put the example code in the Program.Start (I don't remember if it's the same as C#). As mentioned, I don't remember if it will avoid the console prompt, because it is created by the engine itself.

     

    thanks will try tomorrow, do some more of you guys have that annoying command prompt window?

     

    Cheers

  7. Hey all,

     

    I have made a model but the only problem it constant gives is no collision. I can just walk trough it ;)

    How can I solve this on the easy way?

     

    I attached the files the obj and mtl file is listed in a sub directory rock.zip

    what am I doing wrong ?

     

    Cheers!

  8. You can make islands regardless (you start from the bottom of the sea ;) .. but sure, just flatten the terrain at some middle height, then you can lower and raise it .. you can also fill your heightmap file with some solid gray color in gimp or photoshop

     

    thanks

  9. Hello Community,

     

    is there any documentation for the VB.net wrapper?

     

    with little examples to use camera commands or other important functions?

    I'm using Leadwerks engine 2.5 and Project builder with VB.net project creator.

     

    it would be great if there is such a thing.

    Please pm me or reply here.

     

    Cheers,

    Dennis

  10. HI,

     

    1:) yes, gravity can be disabled per scene or per object. Besides that you can also change the gravity into the direction you want to.

     

    2:) It is possible to make an online game with Leadwerks, but you do need to have someone in your team who knows how to do network programing.

     

    wich means ? do I need to use a 3rd party addon, or is it build in ?

     

    it's about making a online space game

×
×
  • Create New...