Jump to content

DigitalHax

Members
  • Posts

    295
  • Joined

  • Last visited

Posts posted by DigitalHax

  1. Hey,

     

    I have been setting up a menu system, but and I want the mouse to dissapear when you hit esc. But I tried to refine my code, but in my code the mouse flickers and doesn't work.

     

    The basic concept of my code is,

     

    //Main Loop {

     

    If(menval == 0 {

    if keyhit esc {

    menval = 1

    Menu = 1

    }

    } else {

    If keyhit esc {

    Menval = 0

    menu = 0

    }

     

     

     

    if menu = 0 {

    //main code

    Hide the mouse

    } else {

    //menu code

    Show the mouse

    }

    }

     

    I hope someone understands what I'm doing wrong...

  2. I find it useful of how easy the coding is. If you want to code a simple part to your game, you don't have to go through 20 files and add masses of code. You can start from absolute scratch if you want. Another good thing is that its small, in a good way. You want an answer to a question, you can get a rensponse from the CEO. Direct problem solving. And the asset store is very helpful. Most things people make on here are small, but may contain something you might want in your project. If you ask nicely and don't annoy people, your gonna get help.

     

    It all just depends on what you want to do. But I personally think LE is just as good, (maybe better) than all the other big game engines.

  3. Hint:

     

    LE::MouseHit(1)

    LE::MouseX()

    LE::MouseY()

    LE::DrawImage()

     

    Edit: Ok Ok you need a function something like this

    //startPos is the top left starting point of a UI Element
    //dims are the dimensions of a UI Element
    int IsMouseInBoundingBox(LE::TVec2 startPos, LE::TVec2 dims){
    
    if(MouseX() >= startPos.X && MouseY() >=startPos.Y && MouseX()<startPos.X+dims.X && MouseY() <startPos.Y+dims.Y) { //Check if the mouse is within the Button Bounding Box
    
    return 1;   //return 1 if mouse is within the box
    } else {
    return 0;  // return 0 if mouse not in the box
    }
    }
    

     

    Ok so you might be wondering why that function is just about mouse position and doesn't check if it is clicked.. Well thats becasue I have a hover skin to all my buttons. This is probably the core function that is used for pretty much every UI element I create. Its pretty simple but it works.

     

    So thats all I'm giving ya. You'll have to be creative with the rest

     

    Thanks Ken,

     

    I had the idea of possibly making my own sort of GUI in the first place, but I guess that is the sort of concept code I needed to get started.

     

    But thanks to everyone! I guess I just had no idea about how easy it could be to make something like this.

  4. Hey all,

    I have started some minor milestone development (Using vanilla C++) in which I have made a simple menu system where upon hitting escape, the mouse appears, and the control stops. I want to have some GUI (maybe a few buttons)

    appear.

     

    Now I don't know much on this topic, but I want people's opinion on it. What is the best gui for Leadwerks?

     

    Thanks in advance...

  5. I was wondering how someone would go about packing things into password files. If I were to load all map files (models etc) into a packaged file would they still be able to access each other, and would I be able to put scripting in there and still have everything load perfectly? I am just not sure and want some clarification.

     

     

    Thanks in advance.

  6. One way to do it is code a physical object using something similar to the bullet code, and set a range to how far it can go before deleting itself.

     

    Or. You could use some of the ways you described. You would have to have already made your own hp/damage system regardless, but I am not overly sure.

  7. I have recently tried exporting a model to leadwerks via the 3ds max tools, and it is encountering an error. I am using max 2012, the model works fine, but I just don't know what I should do. I could always use blender for small precision modeling, it's just I just spend about 250 for leadwerks and I am not to keen on spending more for UU3D pro.

     

    What do you all think?

     

    Thanks.

  8. As I see it you can make any type of game but you cannot put a wrapper around the le api and sell it as a game engine as though it was your own work.

     

    But as some people have done, you can make your own interface, or any other tool so assist you personally, but no, you can sell it off.

  9. Making a third person medieval type game and struggling with one or two issues. Wondering when le3 will come out and what impact it will have on my code as it stands right now.

     

    Yeah I completely agree... I might not try to start anything too big until LE3 is released.

×
×
  • Create New...