Hi. i'm new to Leadwerks and I started scrpiting in lua. When i try to make basic controller i discovered that bug (or my mistake). Here is one of scripts which i (try to) make.
Script.player = "" --entity "Player"
function Script:Start()
end
function Script:Update()
if window:KeyDown(Key.D) then
print("D Pressed")
right()
end
end
function Script:right()
ppos = self.player:GetPosition()
self.player:SetPosition(ppos+Vec3(3,0,0))
end
When it launched i didn't get any console replys about pressed D and my character didn't move.
At the end sorry for my English. That text could have errors.