I managed to get tiled and AdvTiledLoader working, but I dont know how to properly register collisions, can someone give me a hand? (its a top down game not platformer)
here the love file in all its unorganized glory
help colliding with tiles
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
help colliding with tiles
- Attachments
-
- TopDown.love
- (47.08 KiB) Downloaded 69 times
Re: help colliding with tiles
1) Switch to STI
2) Set any layer, object, tile, etc to have a custom property called "collidable" and give it the value "true"
3) When loading STI, enable the box2d plugin
4) Set up a basic box2d world
5) Pass that world into STI
2) Set any layer, object, tile, etc to have a custom property called "collidable" and give it the value "true"
3) When loading STI, enable the box2d plugin
4) Set up a basic box2d world
5) Pass that world into STI
Code: Select all
local sti = require "sti"
local map = sti.new("map.lua", { "box2d" })
local world = love.physics.newWorld(0, 0)
map:box2d_init(world)
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Re: help colliding with tiles
yeah someone in the love chat room said the same thing, I'm working on learning it right now ^.^Karai17 wrote:1) Switch to STI
2) Set any layer, object, tile, etc to have a custom property called "collidable" and give it the value "true"
3) When loading STI, enable the box2d plugin
4) Set up a basic box2d world
5) Pass that world into STI
Code: Select all
local sti = require "sti" local map = sti.new("map.lua", { "box2d" }) local world = love.physics.newWorld(0, 0) map:box2d_init(world)
Re: help colliding with tiles
That was me
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Who is online
Users browsing this forum: No registered users and 12 guests