Hi all,
I’m a Unity Refugee. We previously work exclusively on Unity 2D mobile games for the past 8 years.
We like Defold’s engineering philosophy, but we’re also finding it somewhat challenging to pick up. I’d love for other devs to share the concepts that threw you off and things that has helped.
I’ll start with 2 things that helped a bunch:
Starting tutorial
This is the end to end tutorial that I feel helped me the most.
I felt like the Defold tutorials on the website, doesn’t flow very well for me.
Coroutines
I’ll start with Coroutines. I had a really hard time with lua coroutines, trying to do something simple like this:
IEnumerator MyCoroutine()
{
for(int i = 0; i < 10; i++)
{
yield return WaitForSeconds(0.1);
Debug.Log("We did it!");
}
}
Until we discovered ludobits
ludobits.flow allows very similar
local flow = require "ludobits.m.flow"
flow(function()
for i = 1,10 do
flow.delay(0.5)
print("We did it")
end
end)
Let’s save each other’s sanity! What other good tips have helped you with Defold?