[Solved] Bounding box collision gaps

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
SpiritedDusty
Prole
Posts: 1
Joined: Mon Nov 11, 2013 6:04 am

[Solved] Bounding box collision gaps

Post by SpiritedDusty »

Hi, I'm trying to make a basic player moving around and colliding with things. I used the bounding box collision that was on the wiki. It stops when it hits the box but theres sometimes a small gap of a few pixels between the player and the box. I've tried to make a loop that moves the player until it collides but that isn't working. Any help is appreciated, thanks!

EDIT: I ended up using bump.lua and its all working now
Attachments
collision_gaps.love
(720 Bytes) Downloaded 81 times
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: [Solved] Bounding box collision gaps

Post by kikito »

:)

I'm glad that bump worked out for you.

A word of warning: bump 2.0 is coming soon, and it will change lots of things.
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests