#Should I use Lua or GDScrip

1 messages · Page 1 of 1 (latest)

leaden wharf
#

Context first, was working on a project in a custom engine and am now porting it to Godot cause of scaling issues. The engine and game itself was written in C# and for individual characters and objects I would use a Lua script through a library called NLua to handle their states such as when to call effects or spawn projectiles and whatnot. I did Lua so that the other people working on the project could help work on the characters without having to really mess with the source code itself. Now I’m wondering if I should keep the Lua scripts or port them to GDScript and use those. Just kinda want some opinions, thanks!

errant nebula
#

I think it depends on how much you have written already. GDScript is far better integrated into the engine, and you'll have less problems in the future if you adopt it.
If you have a lot of logic written already you may not want to do it for this project though. Lua bindings for godot exist

leaden wharf
#

Eh, it’s a lot of logic written but it’s mostly simple logic like checking time in state to call source code spawn whatever or change velocity function with very few bits of complicated logic

#

It wouldn’t be hard at all and since lua and gdscript are super close in syntax the other guys’ll be fine but it’ll just be a bit tedious