Hi, would like some help with the code line it seems to not be working and i am new to love and don't fully understand
function love.mousepressed(x, y, button, istouch, presses )
if button == 1 then
score - score + 1
end
end
it is supposed to draw a circle this code would make it so when pressed is would give the player 1 point for every press with the left mouse button, I don't understand why it is not working
function love.mousepressed(x, y, button, istouch, presses ) code line not working
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
function love.mousepressed(x, y, button, istouch, presses ) code line not working
- Attachments
-
- main.lua
- the code
- (547 Bytes) Downloaded 65 times
Re: function love.mousepressed(x, y, button, istouch, presses ) code line not working
I think
should be
Code: Select all
score - score + 1
Code: Select all
score = score + 1
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
Re: function love.mousepressed(x, y, button, istouch, presses ) code line not working
And please be sure that the function love.mousepressed is only one.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests