Search found 10 matches

by thyrgle
Mon Jul 08, 2013 10:30 pm
Forum: Support and Development
Topic: Issue with simple physics removal test.
Replies: 5
Views: 2805

Re: Issue with simple physics removal test.

Ok, I was able to figure it out by clearing the block table in the "toRemove" loop, destroying the body and not the fixture, and checking if block.body is nil it worked. I don't know if that results in a memory leak though. :shock: I hope it doesn't. Thanks for the help!
by thyrgle
Mon Jul 08, 2013 3:58 am
Forum: Support and Development
Topic: Issue with simple physics removal test.
Replies: 5
Views: 2805

Re: Issue with simple physics removal test.

Ahh, now I can get it to sort of work. It now runs if I change the update function to this: function love.update(dt) world:update(dt) for _, fixture in ipairs(toRemove) do fixture:destroy() end for i = #toRemove,1,-1 do table.remove(toRemove,i) end end But for some reason the square doesn't disappea...
by thyrgle
Mon Jul 08, 2013 2:57 am
Forum: Support and Development
Topic: Issue with simple physics removal test.
Replies: 5
Views: 2805

Re: Issue with simple physics removal test.

I have tried your suggestion and changed my draw code to prevent anything from happening if there is no body by checking if any body is nil: function love.draw() love.graphics.setColor(255,0,0) if ball.body ~= nil then love.graphics.circle("line", ball.body:getX(), ball.body:getY(), ball.s...
by thyrgle
Sun Jul 07, 2013 5:57 am
Forum: Support and Development
Topic: Issue with simple physics removal test.
Replies: 5
Views: 2805

Issue with simple physics removal test.

In my game I am trying to have it so I can remove items when a ball touches them. I have issues trying to remove the items. I have attached a small test case and tried implementing an updated-to-0.8.0 (by making shapes->fixtures) version of this: https://love2d.org/wiki/Remove_Workaround . The ball ...
by thyrgle
Mon Jul 01, 2013 3:53 am
Forum: Support and Development
Topic: Can't get Goo to work.
Replies: 2
Views: 1390

Re: Can't get Goo to work.

Haha, I saw another forum post somewhere saying Goo was a better version of LoveUI. Guess they're both out of date. I'll take a look into those frameworks then. Thanks.
by thyrgle
Mon Jul 01, 2013 12:36 am
Forum: Support and Development
Topic: Can't get Goo to work.
Replies: 2
Views: 1390

Can't get Goo to work.

Hello, I am trying to get the Goo GUI extension to Love2d to work. According to this forum poast: http://love2d.org/forums/viewtopic.php?f=5&t=1523 I should be able to love /path/to/Goo-master because it has a main.lua. This doesn't work though. I get a bunch of errors: Error: goo/goo.lua:316: m...
by thyrgle
Thu Jun 27, 2013 7:19 am
Forum: Support and Development
Topic: Help with camera issues.
Replies: 3
Views: 1842

Re: Help with camera issues.

Have you ever tried doing abs(dist)*pad? Edit: Managed to fix your updateCamera function. function updateCamera() --Useful legibility vars. local p_x = player.body:getX() local p_y = player.body:getY() local e_x = enemy.body:getX() local e_y = enemy.body:getY() --Zoom it out based on distance. loca...
by thyrgle
Wed Jun 26, 2013 7:51 pm
Forum: General
Topic: Help with camera issues.
Replies: 2
Views: 1362

Re: Help with camera issues.

Ok thanks, sorry about that. Here is the new place: viewtopic.php?f=4&t=37923
by thyrgle
Wed Jun 26, 2013 7:50 pm
Forum: Support and Development
Topic: Help with camera issues.
Replies: 3
Views: 1842

Help with camera issues.

**Moved from the General forum** Hi, I am trying to figure out how to use this module: http://nova-fusion.com/2011/04/19/cameras-in-love2d-part-1-the-basics/. I have two balls. One ball is called "player" the other is called "enemy". I want my camera to be focused on the midpoint...
by thyrgle
Wed Jun 26, 2013 7:03 pm
Forum: General
Topic: Help with camera issues.
Replies: 2
Views: 1362

Help with camera issues.

Hi, I am trying to figure out how to use this module: http://nova-fusion.com/2011/04/19/cameras-in-love2d-part-1-the-basics/ . I have two balls. One ball is called "player" the other is called "enemy". I want my camera to be focused on the midpoint between the two balls. Next, I ...