Search found 5 matches

by JacobFM
Tue Jul 06, 2021 10:09 pm
Forum: Support and Development
Topic: Can't detect when mouse hovers over an object?
Replies: 6
Views: 4302

Re: Can't detect when mouse hovers over an object?

I'm a moron, I just wasn't calling the function. Thanks everyone for your help anyway!
by JacobFM
Tue Jul 06, 2021 9:37 pm
Forum: Support and Development
Topic: Can't detect when mouse hovers over an object?
Replies: 6
Views: 4302

Re: Can't detect when mouse hovers over an object?

y3? Should that be y2? Or is x2 maybe supposed to be x3? No, I think that's correct as it is. An example of one of the pawns initialized: pawns:init(1000, 70, 1030, 70, 1015, 35, don, "player" .. tostring(pTurn), "don", true) Although I did realize that my y1 and y3 were out of ...
by JacobFM
Tue Jul 06, 2021 8:52 pm
Forum: Support and Development
Topic: Can't detect when mouse hovers over an object?
Replies: 6
Views: 4302

Can't detect when mouse hovers over an object?

Beginner question alert. I can't seem to detect when the mouse hovers over a pawn. I have a similar class called button that works the same way, and functions just fine. The problematic code: Pawn = Class{} pawns = {} function pawns:init(x1, y1, x2, y2, x3, y3, type, controller, name, inplay) local ...
by JacobFM
Mon Jul 05, 2021 5:03 pm
Forum: Support and Development
Topic: Images print as black rectangles.
Replies: 2
Views: 2825

Re: Images print as black rectangles.

ReFreezed wrote: Mon Jul 05, 2021 4:07 pm You probably need to call love.graphics.setColor(1,1,1) before you draw the background. (Also please use the [code][/code] tag around your code in the future so it's easier to read.)
Gotcha. Thanks and will do.
by JacobFM
Mon Jul 05, 2021 9:05 am
Forum: Support and Development
Topic: Images print as black rectangles.
Replies: 2
Views: 2825

Images print as black rectangles.

I am just trying to set a background image for this map, but it keeps giving me a black solid instead. Here is my main.lua file (unclear to me still how much of the code I'm supposed to post). WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720 -- class stuff Class = require "class" require "Plac...