BlockySurvival / issue-tracker

A non-code repo for tracking issues w/ the Blocky Survival minetest server
12 stars 0 forks source link

Robot loops command. #387

Closed JohannesPaulHoffmann closed 5 months ago

JohannesPaulHoffmann commented 1 year ago

I saw, that robot.move() shall move the robot one node forwards, but it keeps on loopin', than:

robot.move() robot.turn()

issues: 'can only perform one action at a time'.

oversword commented 1 year ago
mem.step = mem.step or 0

if mem.step % 2 == 0 then
  robot.move()
else
  robot.turn()
end

mem.step = mem.step + 1

On Tue, 13 Dec 2022, 17:34 JohannesPaulHoffmann, @.***> wrote:

I saw, that robot.move() shall move the robot one node forwards, but it keeps on loopin', than:

robot.move() robot.turn()

issues: 'can only perform one action at a time'.

— Reply to this email directly, view it on GitHub https://github.com/BlockySurvival/issue-tracker/issues/387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL7C2DXIRAVESCFLJYZXJTWNCXSZANCNFSM6AAAAAAS5PLD5U . You are receiving this because you are subscribed to this thread.Message ID: @.***>