[SOLVED]How to specify a section of a map to use collisions

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
hrobohboy
Prole
Posts: 4
Joined: Tue Jul 07, 2015 7:19 pm
Location: 'Murica

[SOLVED]How to specify a section of a map to use collisions

Post by hrobohboy »

Hi everyone! I am currently using bump.lua for my collisions and I am using STI for drawing my tiled map. I was wondering, is there some way to just specify an area of my map (using coordinates or whatever) that I can then use as an item to add into my bump world? :? For example I have a few trees on my map and I want to make it so that the player can't just walk right over them.

I was thinking about just making a rectangle around the tree and just not drawing the rectangle, but I'm under the impression that isn't a thing. :?

Any and all help is appreciated! :awesome:
Last edited by hrobohboy on Mon Jul 27, 2015 10:23 pm, edited 1 time in total.
I am cursed to trek through the Desert of Life, searching for an Oasis that does not exist. :emo:
User avatar
hrobohboy
Prole
Posts: 4
Joined: Tue Jul 07, 2015 7:19 pm
Location: 'Murica

Re: How to specify a section of a map to use for collisions

Post by hrobohboy »

Totally figured it out myself. The answer to my question is yes, you can indeed draw a rectangle around and object and just not draw it, and simply use it for collisions.
I am cursed to trek through the Desert of Life, searching for an Oasis that does not exist. :emo:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 207 guests