Search found 5 matches

by fragileslime
Tue Dec 08, 2020 11:00 am
Forum: Support and Development
Topic: Need help with making surface of image clickable.
Replies: 10
Views: 9574

Re: Need help with making surface of image clickable.

Thank you for the info.
I've been using sublime for the IDE.
by fragileslime
Tue Dec 08, 2020 9:41 am
Forum: Support and Development
Topic: Need help with making surface of image clickable.
Replies: 10
Views: 9574

Re: Need help with making surface of image clickable.

Thank you so much! Have run into a new issue with my code. The player image does not seem to get drawn/show up. main.lua -- Imports -- require "player" require "map" require "conf" -- Call Backs -- function love.load() function Player.load() -- debug -- io.setvbuf('no'...
by fragileslime
Wed Dec 02, 2020 10:26 am
Forum: Support and Development
Topic: Need help with making surface of image clickable.
Replies: 10
Views: 9574

Re: Need help with making surface of image clickable.

Printing to the screen during love.mousepressed will not do anything meaningful; the screen is cleared right before love.draw is called and drawn right after that, so anything happening to the screen in any other moment will be discarded. You would need to change the value of a variable or somethin...
by fragileslime
Wed Dec 02, 2020 10:19 am
Forum: Support and Development
Topic: Need help with making surface of image clickable.
Replies: 10
Views: 9574

Re: Need help with making surface of image clickable.

Leave that out of the function's parameter list, and it will work. Hi, thank you for the warm welcome and reply. After removing the 4th parameter there is no error but when trying to click on the images surface it seems that the print function does nothing. I changed it from printing through the co...
by fragileslime
Wed Dec 02, 2020 9:31 am
Forum: Support and Development
Topic: Need help with making surface of image clickable.
Replies: 10
Views: 9574

Need help with making surface of image clickable.

Hi everyone, new to love2D and lua. I'm trying to create a game menu but am having trouble with making the surface of a image clickable. What is expected to happen: Mouse clicks on image, function runs. What is happening: Mouse clicks anywhere, and function does not run but returns error. Error: mai...