Skip to content

Commit 352e47c

Browse files
committed
fixed other players z position
1 parent 0e86824 commit 352e47c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Defold/other_player.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ embedded_components {
2424
position {
2525
x: 0.0
2626
y: 0.0
27-
z: 0.0
27+
z: 0.1
2828
}
2929
rotation {
3030
x: 0.0
@@ -44,7 +44,7 @@ embedded_components {
4444
position {
4545
x: 0.0
4646
y: 25.0
47-
z: 0.0
47+
z: 0.8
4848
}
4949
rotation {
5050
x: 0.0

Defold/scripts/game_controller.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function Move(change)
8888
newx = room.state.players[other_id].x*scaling + spriteCenter;
8989
newy = room.state.players[other_id].y*scaling + spriteCenter;
9090

91-
created_id = factory.create("default:/other_player_factory#factory", vmath.vector3(newx, newy, 1),vmath.quat(),{},3.125)
91+
created_id = factory.create("default:/other_player_factory#factory", vmath.vector3(newx, newy, 0.1),vmath.quat(),{},3.125)
9292
other_players[other_id] = created_id
9393

9494
elseif other_players[other_id] and other_id ~= id then

0 commit comments

Comments
 (0)