diff --git a/datas/maps/action3D/map.lua b/datas/maps/action3D/map.lua index b12e0b9..9b14532 100644 --- a/datas/maps/action3D/map.lua +++ b/datas/maps/action3D/map.lua @@ -361,6 +361,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 32 } }, @@ -376,6 +377,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 32 } }, @@ -391,6 +393,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 32 } }, @@ -406,6 +409,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 32 } }, @@ -421,6 +425,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 32 } } @@ -987,6 +992,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1002,6 +1008,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1017,6 +1024,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1032,6 +1040,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1047,6 +1056,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1062,6 +1072,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1077,6 +1088,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1092,6 +1104,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1107,6 +1120,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } }, @@ -1122,6 +1136,7 @@ return { rotation = 0, visible = true, properties = { + ["adaptPosition"] = true, ["z"] = 56 } } diff --git a/datas/maps/action3D/map.tmx b/datas/maps/action3D/map.tmx index 3d72494..bcf317c 100644 --- a/datas/maps/action3D/map.tmx +++ b/datas/maps/action3D/map.tmx @@ -213,26 +213,31 @@ + + + + + @@ -435,51 +440,61 @@ + + + + + + + + + + diff --git a/gamecore/modules/world/world3D.lua b/gamecore/modules/world/world3D.lua index 9d6a98a..0b4c12d 100644 --- a/gamecore/modules/world/world3D.lua +++ b/gamecore/modules/world/world3D.lua @@ -125,7 +125,14 @@ end function World3D:newActorFromMap(objectlayer, object) local z = object.properties.z or 0 - self:newActor(objectlayer.name, object.x, object.y, z) + local adaptPosition = object.properties.adaptPosition or false + + local y = object.y + if (adaptPosition) then + y = y + z + end + + self:newActor(objectlayer.name, object.x, y, z) end function World3D:newCollisionFromMap(objectlayer, object)