Add a facing parameter to the engio.move

This commit is contained in:
2024-02-16 15:48:49 -05:00
parent 3c1df4ebb9
commit e68d63915d

View File

@@ -39,8 +39,8 @@ function engio.myfunction(actor, place, a, b, c)
pprint("C:", c) pprint("C:", c)
end end
function engio.move(actor, place, action, xyz) function engio.move(actor, place, action, xyz, facing)
-- todo: sanity check the action and xyz. -- todo: sanity check the parameters.
dprint("engio.move ", action, " ", xyz) dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
tangible.animate(actor, nil, {action=action, xyz=xyz}) tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
end end