Skip to content

Commit 7ff7bab

Browse files
committed
fix rotation on client
1 parent 3334dd7 commit 7ff7bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Defold/scripts/game_controller.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Move(change)
6464
elseif other_players[other_id] and other_id ~= id then
6565
newx = room.state.players[other_id].x*scaling + spriteCenter;
6666
newy = room.state.players[other_id].y*scaling + spriteCenter;
67-
newrot = room.state.players[other_id].rotation * -90;
67+
newrot = room.state.players[other_id].rotation;
6868
-- go.set_position(vmath.vector3(newx, newy, 1), other_players[other_id])
6969
msg.post(other_players[other_id], "Game State", {x = newx, y = newy , rot = newrot});
7070

0 commit comments

Comments
 (0)