Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Help me push a button with Love2D? (also uses Lua)

Asked by 4 years ago

Hello, I am using Love2D Lua, instead of Roblox Lua, i am sorry if this breaks the rules but I need help, it is supposed to add 1 to the score when I push a circle known as "Button" can somebody help?

01function love.load()
02  button = {}
03  button.x = 200
04  button.y = 200
05  button.size = 50
06 
07  score = 0
08  timer = 0
09 
10  myFont = love.graphics.newFont(40)
11end
12 
13function love.update(dt)
14 
15end
View all 37 lines...
0
https://love2d.org/forums/ and make sure delete the post before I moderate >:) Block_manvn 395 — 4y
0
this shouldn't be moderated, stop your power trip before i do Fifkee 2017 — 4y

Answer this question