perbone / luascript

Lua language support for Godot Engine
Apache License 2.0
633 stars 45 forks source link

Can you provide a simple working example #14

Closed hunar1997 closed 4 years ago

hunar1997 commented 4 years ago

Hello

I compiled Godot with this module and created a sprite with a Lua script attached to it, I just wanted to know if it works, how can I do that? I put a print statement inside the _ready function that was auto generated, but couldn't see anything printed after running

Thanks :D I'm a beginner

perbone commented 4 years ago

Hey there! Thanks for your interest but I'm afreid for now you'll be disappointed as the features already done cannot do too much for the end user (you!). At the moment I'm still researching the best way to integrate Lua into the engine. Hope you don't give up on this project! -- Perbone

hunar1997 commented 4 years ago

Thank you :D I really like both Lua and Godot, I'll be waiting for this project. I have one small question though, will it be faster than GDScript?

perbone commented 4 years ago

If I do my job right yes, it will be faster than GDScript, based on the fact that Lua is the fastest script language out there. But version 4.0 of the engine is expected to have a lot of improvements all of the place including some speed ups for GDScript so it'll be a good and friendly fight to see who's the winner!

hunar1997 commented 4 years ago

That's great, I hope you will have enough free time and motivation :D