Jump to content

Josh

Staff
  • Posts

    26,613
  • Joined

  • Last visited

Profile Information

  • Location
    USA

Recent Profile Visitors

1,526,057 profile views

Josh's Achievements

Grand Master

Grand Master (14/14)

  • Well Followed
  • Dedicated
  • Conversation Starter
  • Reacting Well
  • Problem Solver

Recent Badges

17k

Reputation

1.2k

Community Answers

  1. You should not create a new world in an entity script. The world is already created for you. MgetWorld = {} function MgetWorld:Start() self.pref = LoadPrefab(self.world, "pref/test_obj.pfb") if self.pref ~= nil then self.pref:Move(0.0, 0.0, 0.0) Print("MgetWorld : done") end end function MgetWorld:Update() end
  2. We plan to support Linux in the future.
  3. What is the name of the Lua script file this code is placed in? Is this in main.lua or in an entity script?
  4. The mouse tool menus and shortcut keys are dynamically assigned, because the system is meant to support new mouse tools that are not coded in the core program. It might be possible to modify these with a script that runs after the program is loaded.
  5. A big thanks is due to @klepto2 for his help implementing the Scintilla text editor, nice bloom effect, and volumetric lighting!
  6. I have reinstated the app data on our server and you can continue to run the standalone version. However, it will not receive any more updates, so I don't know how useful it will be. If you do not already have Leadwerks Game Engine on Steam please contact me.
  7. It would be better to declare it as a local variable: local framebuffer In this case, it probably won't matter, but in the future it's a good idea to declare local variables whenever possible.
  8. I must go to sleep, but I will remain with you in the videos. I think the Lua programming series will help you.
  9. Maybe start here. This explains from the beginning how the script editor works: https://www.leadwerks.com/learn/Programming?lang=lua
  10. Really? What are you confused about?
  11. I think you will have a very difficult time without it!: https://www.leadwerks.com/learn/Debugging?lang=lua&nocpp=1
  12. I don't understand this statement?
  13. Run in debug or fast debug mode. If there is still no error, set a breakpoint to figure out where the problem is.
  14. I would use table fields instead of global variables: -- create start timer self.gracetimer = CreateTimer(3000) ListenEvent(EVENT_TIMERTICK,self.gracetimer,OnGraceTimer) --create gui local font = LoadFont("Fonts/arial.ttf") self.scoretile = CreateTile(world, font, "Score: 0", 32, TEXT_LEFT) Other than that, what is the problem with this code?
  15. Probably? You could create a Lua project, then copy the C++ code files from another project into it to make your game EXE. This is what I plan to do in our SCP game, but I have not put it into practice yet.
×
×
  • Create New...