Search found 107 matches

by pedrosgali
Wed Oct 17, 2018 6:39 pm
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 17456

Re: Mousepressed not working?

No problem, next time if you post a .love file like I did it'll be a lot easier to help you as all the code will be there for us to look at.
by pedrosgali
Wed Oct 17, 2018 6:26 pm
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 17456

Re: Mousepressed not working?

The main.lua file should look like this: local menu = require "menu" function love.load() menu_load() end function love.mousepressed(x, y, b) menu_mousepressed(x, y, b) end function love.update(dt) end function love.draw() menu_draw() end Well I'm sure there will be other things in there b...
by pedrosgali
Wed Oct 17, 2018 6:18 pm
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 17456

Re: Mousepressed not working?

Here's a .love of the file you posted with a main.lua to make it work, if you click in the boxes I drew the function gets called. I don't know what else to tell you. menuhelp.love I got it to launch with a console (windows only) to show that the function is being called. I copied the code you posted...
by pedrosgali
Wed Oct 17, 2018 9:13 am
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 17456

Re: Mousepressed not working?

Did you even try drawing the rectangles to the screen?
Image
If you had you would have immediately seen your problem.
by pedrosgali
Tue Oct 16, 2018 7:21 am
Forum: Support and Development
Topic: Mousepressed not working?
Replies: 27
Views: 17456

Re: Mousepressed not working?

Your positioning is off, draw a rectangle round the box in your draw function like this function menu_draw() --love.graphics.setFont(titlefont) love.graphics.printf("KNIGHTLY", 200, 100, 400, "center") --love.graphics.setFont(buttonfont) for i, v in pairs(menubuttons) do --A rect...
by pedrosgali
Fri Oct 12, 2018 9:32 pm
Forum: General
Topic: I demand that LÖVE add support of lua 5.3
Replies: 7
Views: 10795

Re: I demand that LÖVE add support of lua 5.3

What situation and what feature out of interest?
by pedrosgali
Mon Oct 08, 2018 6:02 pm
Forum: Libraries and Tools
Topic: GetAss - A library to recursively parse a directory for game assets
Replies: 6
Views: 6425

Re: GetAss - A library to recursively parse a directory for game assets

I like this, I've sent you a PM to discuss how you can expand this for any type of file. Didn't want to hijack your library thread. :awesome:
by pedrosgali
Fri Oct 05, 2018 3:17 pm
Forum: General
Topic: Stand-alone headless server
Replies: 5
Views: 6121

Re: Stand-alone headless server

Yes I did.
by pedrosgali
Tue Oct 02, 2018 3:29 pm
Forum: General
Topic: Stand-alone headless server
Replies: 5
Views: 6121

Re: Stand-alone headless server

I think you also need to set love.graphics to false, I had trouble running on Ubuntu server 18.x until I turned that off.