Search found 77 matches

by Bannana97
Sat Jul 14, 2012 8:26 am
Forum: Support and Development
Topic: Downloading a file without blocking.
Replies: 14
Views: 1884

Re: Downloading a file without blocking.

This is a thread I made called downloader.lua for it. require("love.filesystem") love.filesystem.setIdentity("my_proj_name") f = love.filesystem.newFile("Example.exe") f:open('a') local http = require("socket.http") local b, c, h = http.request{ url = "ht...
by Bannana97
Sat Jul 14, 2012 4:03 am
Forum: Support and Development
Topic: Menu Screens, Animation and Platforming
Replies: 7
Views: 1228

Re: Menu Screens, Animation and Platforming

thesmeagle wrote:@ Bannana: That looks useful, it's just that how do I position the collision blocks? Do I need x-y coordinates?
Yeah, you'd use variableName.Position = Vector2.new(10, 10) -- (x,y)
by Bannana97
Sat Jul 14, 2012 4:00 am
Forum: Support and Development
Topic: Downloading a file without blocking.
Replies: 14
Views: 1884

Re: Downloading a file without blocking.

Share what? The GUI system or the sink function?

Lol, sorry for the confusion.
by Bannana97
Sat Jul 14, 2012 3:46 am
Forum: Support and Development
Topic: Downloading a file without blocking.
Replies: 14
Views: 1884

Re: Downloading a file without blocking.

I did end up figuring out how to do it with sink, and made my own function for it. I also have a GUI system a, it has progress bars included already :D g = MasterGui.new("ProgressBar") g.Percent = 10 g.Position = Vector2.new(10, 10) g.BackgroundColor = Color3.new(255, 255, 255) Thanks ! :)
by Bannana97
Fri Jul 13, 2012 11:50 pm
Forum: Support and Development
Topic: Downloading a file without blocking.
Replies: 14
Views: 1884

Downloading a file without blocking.

I am currently using LuaSocket to download a file in a thread with this simple code: local b, c, h = http.request("https://www.example.com/Download/Example.exe?from="..Game.Version) However, it will block the thread until done. What I want to do is make a "Progress" bar on my mai...
by Bannana97
Fri Jul 13, 2012 6:36 am
Forum: Support and Development
Topic: How to Stop a Thread
Replies: 5
Views: 2303

How to Stop a Thread

Since :kill() was removed, how can we stop threads now?
I am using threads for hosting servers within the application, and all is fine, except I need to be able to stop the server.

Let me know,
thanks!
by Bannana97
Thu Jul 12, 2012 1:57 am
Forum: Support and Development
Topic: changing hue
Replies: 3
Views: 1186

Re: changing hue

You could try tinting the screen with a transparent color...
Won't work well, however.

For images, you can use love.graphics.setColor to set a tint for them, or RGB 255,255,255 to reset it back to normal.
by Bannana97
Tue Jul 10, 2012 11:20 pm
Forum: Support and Development
Topic: Understanding threads
Replies: 19
Views: 2640

Re: Understanding threads

Hey,

Okay, great :D
Last question ... are love's main callbacks included in the thread by default?

Thanks.
by Bannana97
Tue Jul 10, 2012 10:15 pm
Forum: Support and Development
Topic: Menu Screens, Animation and Platforming
Replies: 7
Views: 1228

Re: Menu Screens, Animation and Platforming

I made a class for #3, though it only works with polygons (rectangles) and circles. You can easily set properties of a "Part" or "Circle" by doing stuff like: part = Instance.new("Part") part.Name = "Part 01" part.CanCollide = true -- force other cancollide-tr...
by Bannana97
Tue Jul 10, 2012 9:39 pm
Forum: Support and Development
Topic: Understanding threads
Replies: 19
Views: 2640

Re: Understanding threads

Okay, thanks!
And to require a love module, I just do something such as "require('love.audio')" correct?