Hi, defolders. I’m a newbee in Lua, and after reading all documentations about it I can’t write my own code without some samples. If it’s not hard for you, could you, please, write me full code or a part, which will do(I shall change everything I need):
1)After I click on a button, all units (in some area near this button) must get to position of this button and disable it(first unit, which got there, disables it’s function in engaging other units, so they don’t move to button), then continue walking somewhere, .
2)Simple walking of units. They just walk in one direction and change it to opposite after touching the wall.
3)A script for the teleporter of units to another teleporter, which also changes their direction of movement.
That’s all, I think. I need these samples for better understanding of Lua, used in Defold. Thank you for your help.