Hi, I am very new to defold. I am working on the war tuorial and stuck at a spot.
I am creating tanks at random location. Now i need the tanks to move towards the player. Can someone help me out with this.
function spawn_tank(self, dt)
self.timer = self.timer - dt
if self.timer <= 0 then
self.timer = 2
id = factory.create("#tankfactory", vmath.vector3(math.random(100,500), math.random(100,500), 0))
end
end