Search found 2 matches

by Jeen
Sun Jan 15, 2012 1:29 am
Forum: Support and Development
Topic: Physics and images (HardonCollider)
Replies: 4
Views: 1868

Re: Physics and images (HardonCollider)

Thanks, it works, but the sprite draws at left-bottom corner of the bounding box. How can I fix it? Also, if I try to add other arguments to love.graphics.draw, the sprite doesn't move down with the box, only on x axis. function love.draw() love.graphics.draw(heroImage, hero:center(x)) end hero is: ...
by Jeen
Sat Jan 14, 2012 11:26 pm
Forum: Support and Development
Topic: Physics and images (HardonCollider)
Replies: 4
Views: 1868

Physics and images (HardonCollider)

Hello.
I use HardonCollider for collision detection and it works pretty good. But I need to draw a player sprite and move it with its bounding box together. How can I do this?
Thank you :3.