Search found 184 matches

by leiradel
Sun Mar 27, 2011 11:48 pm
Forum: Support and Development
Topic: Post your favorite particle settings...
Replies: 8
Views: 2217

Re: Post your favorite particle settings...

If you're feeling like you could use a particle system editor, take a look at this topic. HGE's editor is very good at least as a starting point to tweak around until you have what you want.

Maybe it's time for a particle system contest? kikito? ;)
by leiradel
Sun Mar 27, 2011 11:35 pm
Forum: Support and Development
Topic: Camera to view all objects
Replies: 5
Views: 1690

Re: Camera to view all objects

BlackBulletIV wrote:I can't see where you're calling push() and pop()
Translation, scaling and rotation only last until love.draw exits. Anyway, I've already added push and pop to print some debug info on the screen.

Thanks,

Andre
by leiradel
Sun Mar 27, 2011 11:31 pm
Forum: Support and Development
Topic: love from sources doesn't work
Replies: 7
Views: 2037

Re: love from sources doesn't work

BlackBulletIV wrote:Also, as far as I know, you can't just execute

Code: Select all

$ love
Running the executable without arguments should present the no game screen.
by leiradel
Sun Mar 27, 2011 9:25 pm
Forum: General
Topic: Anyone gonna help a newbie? Again... yet Again...
Replies: 19
Views: 12931

Re: Anyone gonna help a newbie? Again... yet Again...

How so? It goes to board[row][key] and changes it. How does it set the whole row? Because it is in a for-loop. But he only sets the element if ""..i==key... A better way to write this is changeBoard(key + 0, 1). key + 0 will convert the string key into a number and add zero to it. As for ...
by leiradel
Sun Mar 27, 2011 9:19 pm
Forum: Support and Development
Topic: love.filesystem:setIdenity() error
Replies: 4
Views: 1727

Re: love.filesystem:setIdenity() error

Just to help LuaWeaver better understand the difference. This code calls the setIdentity function which lives in the filesystem table which in turn lives in the love table which is a global variable (meaning it lives in the globals table): love.filesystem.setIdentity(name) This code calls the setIde...
by leiradel
Sun Mar 27, 2011 9:13 pm
Forum: Support and Development
Topic: Strange Audio thing: sound sometimes doesn't play
Replies: 13
Views: 3575

Re: Strange Audio thing: sound sometimes doesn't play

TechnoCat wrote:Source:Stop()
Source:Play()
I think a better behavior would be if Source:Play() stops playing the sound if it's still playing. It's easier to figure out what's going on if your sound stops in the middle to being playing again than the sound not playing at all.
by leiradel
Sun Mar 27, 2011 8:03 pm
Forum: Support and Development
Topic: Camera to view all objects
Replies: 5
Views: 1690

Camera to view all objects

Hi All, I'm developing a game where all objects have a getExtents() method which returns the minimum and maximum coordinates occupied by the object. I'm trying to develop a camera that will get the extents of all visible objects and scale and translate things appropriately to have them all appear on...
by leiradel
Sat Mar 26, 2011 3:20 am
Forum: Support and Development
Topic: Unstable getImageData? (crash)
Replies: 14
Views: 6947

Re: Unstable getImageData? (crash)

Clearly a memory leak somewhere I'm pretty sure there's no memory leak, it's just the way Lua handles user data. Youare right in the sense you have described. It is a "leak" from the lua point of view. The "workaround" is to put collectgarbage("step") or collectgarbage...
by leiradel
Sat Mar 26, 2011 1:47 am
Forum: Support and Development
Topic: Unstable getImageData? (crash)
Replies: 14
Views: 6947

Re: Unstable getImageData? (crash)

miko wrote:Clearly a memory leak somewhere
I'm pretty sure there's no memory leak, it's just the way Lua handles user data.
by leiradel
Sat Mar 26, 2011 1:19 am
Forum: Support and Development
Topic: Unstable getImageData? (crash)
Replies: 14
Views: 6947

Re: Unstable getImageData? (crash)

Let me try to guess what the problem is... When you make a call to fb:getImageData() a new image data is created, which has all pixels from the frame buffer so the memory requirements for it is width*height*bpp (where bpp is probably 4.) But on the Lua side of things what is created is a Proxy userd...