I want to make a box2d polygon shape with Tiled/sti, but i don't know how to do it.
Could someone explain?
demo:
How can i make a polygon physical shape with sti and Tiled?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: How can i make a polygon physical shape with sti and Tiled?
Like this?
viewtopic.php?p=218447#p218447
Also:
Challacade wrote:In Tiled, you can go to View -> Snapping to turn off grid snapping, so you can set things at the individual pixel level. Then for polygons, you can draw polygons on the object layer, there's a dedicated tool for that. www.youtube.com/watch?v=IHmF_bRpOAE
Re: How can i make a polygon physical shape with sti and Tiled?
I meant is it possible rather than a rectangular shape to be an a polygon shapedarkfrei wrote: ↑Wed Oct 11, 2023 7:07 pmLike this?
viewtopic.php?p=218447#p218447
Also:Challacade wrote:In Tiled, you can go to View -> Snapping to turn off grid snapping, so you can set things at the individual pixel level. Then for polygons, you can draw polygons on the object layer, there's a dedicated tool for that. www.youtube.com/watch?v=IHmF_bRpOAE
Code: Select all
physics.shape = love.physics.newRectangleShape(width, height --area.lua line 15)
Code: Select all
function Map:spawnEntities() -- map.lua line 20
for k, v in ipairs(Map.level.layers.entity.objects) do
if v.type == "area" then
Area:new(v.x + v.width / 2, v.y + v.height / 2,v.width,v.height)
end
end
end
but i don't know how to implemented.
Re: How can i make a polygon physical shape with sti and Tiled?
Also I've tried to make polygons for tiled world: viewtopic.php?p=255788#p255788
Re: How can i make a polygon physical shape with sti and Tiled?
i am asking is it possible to create a polygon with the program "Tiled" and to create it as a physical object with sti and box2ddarkfrei wrote: ↑Thu Oct 12, 2023 10:38 am Also I've tried to make polygons for tiled world: viewtopic.php?p=255788#p255788
everything i am trying to do is on the game.love
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests