Jump to content

reaper2259

Members
  • Posts

    47
  • Joined

  • Last visited

Posts posted by reaper2259

  1. Hey everyone im wondering if there is any way to get when a key is released in lua.

     

    I know how to get when the key has been pressed down with KeyHit but i need something like KeyRelease or KeyUp because i need to call something when the player releases the specific key.

     

    also is there any way to get when any key is pressed such as window:KeyHit(Key.Any) these would be really useful in many ways.

     

    thanks for any help.

  2. To change all of these things you need to edit the Main.lua script which is located in the scripts folder in your assets, to make the game full screen change one of the top lines that reads "local windowstyle = window.Titlebar" to "local windowstyle = window.Fullscreen".

     

    To change the windowed resolution change the "screenwidth","1024" and "screenheight","768" to for example "screenwidth","1280" and "screenheight","720", just change the numbers to what ever size you want.

     

    To unhide the mouse change "window:HideMouse()" to "--window:HideMouse()" and that will comment out the hide mouse command.

     

    If your mouse is locked to the center of the game screen then that is most likely in one of your scripts,

    for instance if you are using the default FPSPlayer.lua then you would need to change "window:SetMousePosition(Math:Round(context:GetWidth()/2), Math:Round(context:GetHeight()/2))" to "--window:SetMousePosition(Math:Round(context:GetWidth()/2), Math:Round(context:GetHeight()/2))" under the --Mouse look comment in the UpdateWorld() function.

     

    Though i must warn you that unlocking the mouse with the FPSPlayer will make the player look around very weirdly.

     

    Hope this helps.

    • Upvote 1
  3. Hello everyone i am reaper2259 and i just bought leadwerks last night and so thought i would come and give my introduction.

     

    I am 21 from nsw australia and i have been a hobbyist in game development since i was like 12, i started out doing purely 3d art for fun and then eventually found my way into game development, i have used many engines such as unity and gamemaker i also know some languages(not greatly) such as python, c# and gml.

     

    I haven't released any games i more dabble and have fun, i was looking for a new engine after getting frustrated with unitys terrain tools and honestly just felt like something different and thats when i found leadwerks on sale on steam so decided to jump on it.

     

    Iv only opened leadwerks once so far which was last night to get a quick look before bed but today i plan to sit back and learn it as best i can and i am hopeful that i will be able to grasp lua script and be able to accomplish something with it, i look forward to being a part of this community and hopefully sometime in the coming months i can share something of my creations with you all.

    • Upvote 3
×
×
  • Create New...