Search found 2482 matches

by zorg
Mon Jan 14, 2019 9:18 pm
Forum: Support and Development
Topic: How to make a function wait X amount time?
Replies: 17
Views: 4197

Re: How to make a function wait X amount time?

Hey no worries (even if you necroposted the same thread again after 2 years), it's not like the forum police will come after you. :D
But seriously, please stop doing that.
by zorg
Mon Jan 14, 2019 12:18 pm
Forum: General
Topic: Having Trouble Showing Text in Arabic
Replies: 6
Views: 176

Re: Having Trouble Showing Text in Arabic

Apart from you using a file hoster that doesn't support hotlinking and probably infects computers with viruses, i don't see the issue in your image; is your issue related to the text not having the correct writing direction, or to the glyphs not using their correctly connected forms? Edit: From what...
by zorg
Mon Jan 14, 2019 12:16 pm
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 249

Re: How can I make a loading screen?

It shows it for a split second because i removed the sleep command; with it, the image would indeed show for 3 seconds, after the initial flash and transparency, but again, that's irrelevant. And actually, every löve program behaves like this for me when the window is created.
by zorg
Mon Jan 14, 2019 1:57 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 249

Re: How can I make a loading screen?

I attached the gif i captured; looks like it can't be avoided this way.
by zorg
Mon Jan 14, 2019 1:19 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 249

Re: How can I make a loading screen?

Tried that, nothing different; i could try to capture a gif with licecap of how it's on my end?

Also, if this behaviour of SDL can't be mitigated, i might look into spawning the window outside the desktop area, and moving it back after 3 secs or so, so that that init thing won't show at all.
by zorg
Mon Jan 14, 2019 1:10 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 249

Re: How can I make a loading screen?

Apologies, i found the context a bit lacking so i was confused about your first answer; That said, i tested your solution, and on my end, the initial SDL window with the initialized contents (ie white, or apparently black on OSX, according to slime) won't "replace" that startup phenomenon, (and in m...
by zorg
Mon Jan 14, 2019 12:39 am
Forum: Support and Development
Topic: How can I make a loading screen?
Replies: 11
Views: 249

Re: How can I make a loading screen?

Um, you shouldn't do that? newImage is wasteful like that?
Also what note about love.run? and where's the explanation that that code looks like love.run's part, and you shouldn't even need to call clear nor present?
What's happening :V
by zorg
Sat Jan 12, 2019 1:14 pm
Forum: Support and Development
Topic: 0.9.2 to 11.2 love.graphics cannot function without a window
Replies: 8
Views: 207

Re: 0.9.2 to 11.2 love.graphics cannot function without a window

In that case, it might be that because of some inexplicable design decision on löve's part, you can no longer use love.graphics functions without creating an actual graphical window (even if some functions did work without it previously); i'm not sure on this one, though i do remember something like...
by zorg
Sat Jan 12, 2019 9:46 am
Forum: Support and Development
Topic: 0.9.2 to 11.2 love.graphics cannot function without a window
Replies: 8
Views: 207

Re: 0.9.2 to 11.2 love.graphics cannot function without a window

A quick look at Config_Files will tell you that you're missing at least two things; t.modules.window = true and t.modules.graphics = true.
by zorg
Fri Jan 11, 2019 7:42 pm
Forum: General
Topic: Scroll Bar Going Too Far
Replies: 6
Views: 183

Re: Scroll Bar Going Too Far

math.floor(x + .5) (and math.ceil(x - .5) for negative numbers) helps with rounding issues where x might be close enough to some number point 5 decimal, e.g. 1.5 should be rounded towards 2, but math.floor(1.5) will floor it to 1.0 instead, because that's what it's supposed to do; 1.5 + .5 = 2, so t...