I tried to change in the objects table :
Code: Select all
local tierra=self.map.layers["Tierra"]
for i, obj in ipairs(tierra.objects) do
obj.rotation=math.pi/5
end
Code: Select all
Map:convertToCustomLayer (index)
But nothing happened, also I previously I found a code to modify the image (tiles and objects), but it's impossible for me to change data such as rotation or x,y axis
Update: I only needing to set more values to change batch position
Code: Select all
instance.batch:set(instance.id, self.map.tiles[instance.gid].quad, instance.x-64,instance.y+64,math.pi/4,4,4,16,16)