Search found 9 matches

by thekingdf
Wed Jul 25, 2012 8:07 pm
Forum: Support and Development
Topic: Several questions on Box2d
Replies: 5
Views: 4132

Re: Several questions on Box2d

I dont know man.

Im reading the api and it basically says bodies that arent active do not perform collision checks.
This means that i dont need to create the bodies on the fly i can just keep them inactive
by thekingdf
Wed Jul 25, 2012 7:43 am
Forum: Support and Development
Topic: Several questions on Box2d
Replies: 5
Views: 4132

Re: Several questions on Box2d

World:setAllowSleeping doesnt work for static bodies i can set them to sleep manually initially but they will wake up permanently after a collision This is totally fine as long as all the shapes in this body are STATIC. In fact there is (or used to be, depending which version of Box2D you have) a d...
by thekingdf
Tue Jul 24, 2012 10:11 pm
Forum: Support and Development
Topic: Several questions on Box2d
Replies: 5
Views: 4132

Several questions on Box2d

1. How do I make it so all bodies are automatically sleeping unless something collides with it? This way I dont have to manage all of them. Currently the bodies will only switch to sleep mode after they stop moving (which means it doesnt work on static bodies). Or is this redundant because even slee...
by thekingdf
Sat Jun 16, 2012 12:13 pm
Forum: Support and Development
Topic: Cant write to Roaming\LOVE
Replies: 9
Views: 4947

Re: Cant write to Roaming\LOVE

Zeliarden wrote:

Code: Select all

love.filesystem.newFile("INFO.txt")
tries to open "INFO.txt" not creat it
https://love2d.org/wiki/love.filesystem.newFile
try

Code: Select all

success = love.filesystem.write("INFO.txt", "Hello")
lol that was easy ty
can delete this thread now
by thekingdf
Sat Jun 16, 2012 11:42 am
Forum: Support and Development
Topic: Cant write to Roaming\LOVE
Replies: 9
Views: 4947

Re: Cant write to Roaming\LOVE

Can you show us a code example and tell us what it does for you? Also, tell us what you were expecting it would do. love.filesystem.newFile("INFO.txt") It doesnt do anything at all. I checked the love directory with the getWorkingDirectory function and there is nothing in that folder when...
by thekingdf
Sat Jun 16, 2012 11:30 am
Forum: Support and Development
Topic: Cant write to Roaming\LOVE
Replies: 9
Views: 4947

Re: Cant write to Roaming\LOVE

Can you show us a code example and tell us what it does for you? Also, tell us what you were expecting it would do. love.filesystem.newFile("INFO.txt") It doesnt do anything at all. I checked the love directory with the getWorkingDirectory function and there is nothing in that folder when...
by thekingdf
Sat Jun 16, 2012 8:34 am
Forum: Support and Development
Topic: Cant write to Roaming\LOVE
Replies: 9
Views: 4947

Re: Cant write to Roaming\LOVE

Im trying to make a new file but it wont work.... the files inside appdata are automatically set to read only and when I try to change this it will automatically go back to read only even though I am on the administrator account. Is there a way to change the write directory for filesystem? Or how d...
by thekingdf
Sat Jun 16, 2012 2:29 am
Forum: Support and Development
Topic: Cant write to Roaming\LOVE
Replies: 9
Views: 4947

Cant write to Roaming\LOVE

Im trying to make a new file but it wont work.... the files inside appdata are automatically set to read only and when I try to change this it will automatically go back to read only even though I am on the administrator account. Is there a way to change the write directory for filesystem? Or how do...
by thekingdf
Sun May 27, 2012 3:41 pm
Forum: Libraries and Tools
Topic: Löve Frames - A GUI Library
Replies: 406
Views: 353653

Re: Löve Frames - A GUI Library

Im trying to remove all the objects on the screen like this for key, value in pairs(loveframes.base.children) do value:Remove() end But this is only removing 1 of each type of object. So if theres 2 buttons it will only remove 1 of them. I have no idea why. Also, you got any ideas on how to stop the...