Search found 50 matches

by gcmartijn
Wed Apr 14, 2021 4:39 pm
Forum: Support and Development
Topic: Missing a function in love to check object:isReleased() or something like that
Replies: 4
Views: 105

Re: Missing a function in love to check object:isReleased() or something like that

Found the problem, I did forget the nil in a function --- self.canvas:release() self.canvas = nil --- I keep using the release() function to nicely cleanup items that I don't use anymore. At the moment I have something like this: [scene 1] -> many resources -> player walks to [scene 2] -> release sc...
by gcmartijn
Wed Apr 14, 2021 9:03 am
Forum: Support and Development
Topic: Missing a function in love to check object:isReleased() or something like that
Replies: 4
Views: 105

Missing a function in love to check object:isReleased() or something like that

Hi, I'm creating and remove various objects on the fly and sometimes i'm in a situation that a draw loop is using an object that don't exist anymore. I can fix this by refactoring some code, but maybe I can check if a object has been released (but don't know how). Basic example code: local function ...
by gcmartijn
Wed Mar 10, 2021 1:11 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1282

Re: looking for a nice text border (outline/stroke) script.

Good to know about a NewText object for the future. owww, wait haha now 'I can connect the dots' I feel stupid haha. I can create now free correct fmt fonts using the link above. And the output using both functions are for now oke. So again this forum and great community solved this case. I'm happy ...
by gcmartijn
Tue Mar 09, 2021 4:36 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1282

Re: looking for a nice text border (outline/stroke) script.

Hi Milon, Something like that was I using (the the first post) but yours is better because its is the correct way (I did miss some x/y points). Yesterday I was testing a font to bmfont program (https://github.com/vladimirgamalyan/fontbm) and was working/looking oke (but without border yet). I guess ...
by gcmartijn
Thu Mar 04, 2021 8:13 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1282

Re: looking for a nice text border (outline/stroke) script.

Thanks for the info. At the moment the text is white on top of the game, and using a black border it looks much better, and more easy to read. But you say some things I can use, especially the thing about "a font that comes with a built-in outline". Than I still can use ttf and see how it ...
by gcmartijn
Thu Mar 04, 2021 5:26 pm
Forum: Support and Development
Topic: looking for a nice text border (outline/stroke) script.
Replies: 7
Views: 1282

looking for a nice text border (outline/stroke) script.

I'm using ttf fonts and that is looking good now. Inside the 'game' there are various text sizes and maybe multiple fonts. At this point i'm happy with ttf. But now I had to add a black solid border around it and 1px is looking oke, but for example a 5 px border is not correct (beautiful). Before i'...
by gcmartijn
Thu Feb 25, 2021 5:42 pm
Forum: Support and Development
Topic: multiple canvases alpha, not working ?
Replies: 6
Views: 1286

Re: multiple canvases alpha, not working ?

Oke thanks for the info, I have to say that at this point I din't have any knowledge about blending modes at all ;) but now I can implement this structure in some classes. Thanks.
by gcmartijn
Thu Feb 25, 2021 12:52 pm
Forum: Support and Development
Topic: multiple canvases alpha, not working ?
Replies: 6
Views: 1286

Re: multiple canvases alpha, not working ?

And can i do this, because this is working, or is it better to leave the setBlendMode inside the function? local function drawCanvas1() love.graphics.clear() --love.graphics.setBlendMode("alpha", "alphamultiply") love.graphics.setColor(1, 0, 0) love.graphics.rectangle("fill&...
by gcmartijn
Thu Feb 25, 2021 6:48 am
Forum: Support and Development
Topic: multiple canvases alpha, not working ?
Replies: 6
Views: 1286

Re: multiple canvases alpha, not working ?

Thanks ! Now it's possible for me to convert some things into this multiple canvases structure. I see that you use setColor(0,0,0,0) and clear(). What I do is sometimes this function QuickMenu:draw() -- current color local pr, pg, pb, pa = love.graphics.getColor() local pfont = love.graphics.getFont...