Hi all, just sharing these two global functions that I wrote as I needed the ability to easily switch the rotation for objects and characters (which aren't the player).
** ALSO if anyone is trying to insert code, the "</>" Insert Code button is if you are inserting HTML code, but to format Bauxite code, you can use the square brackets
BB code style
function rotate_direction_left($direction) begin
if $direction == SOUTH then
$direction = EAST;
elseif $direction == EAST then
$direction = NORTH;
elseif $direction == NORTH then
$direction = WEST;
else
$direction = SOUTH;
end;
return $direction;
end;
function rotate_direction_right($direction) begin
if $direction == SOUTH then
$direction = WEST;
elseif $direction == WEST then
$direction = NORTH;
elseif $direction == NORTH then
$direction = EAST;
else
$direction = SOUTH;
end;
return $direction;
end;