Search found 4 matches

by BobTheBuilder
Fri Jan 04, 2019 11:11 am
Forum: General
Topic: love.event.wait freezing game window
Replies: 13
Views: 2318

Re: love.event.wait freezing game window

I used this script and it worked: local Timer = require("hump.timer") right = love.graphics.newImage("potatoes/right.png") right2 = love.graphics.newImage("potatoes/right2.png") left = love.graphics.newImage("potatoes/left.png") left2 = love.graphics.newImage("potatoes/left2.png") potato = right x =...
by BobTheBuilder
Thu Jan 03, 2019 5:40 am
Forum: General
Topic: love.event.wait freezing game window
Replies: 13
Views: 2318

Re: love.event.wait freezing game window

I put the "hump" folder (with the timer.lua file in it) in my games folder and entered this script into main.lua: local Timer = require("hump.timer") function love.keypressed(key) if key == 'a' then Timer.after(1, function() print("Hello, world!") end) end end function love.update(dt) Timer.update(d...
by BobTheBuilder
Wed Jan 02, 2019 10:55 am
Forum: Games and Creations
Topic: Text and variables
Replies: 3
Views: 1087

Text and variables

Is there a way of setting a text (love.graphics.print("Hello)) to a variable? For example, when I click the "g" button, a variable will increase by 10 and will cause a text to change to 10.
by BobTheBuilder
Wed Jan 02, 2019 10:14 am
Forum: General
Topic: love.event.wait freezing game window
Replies: 13
Views: 2318

Re: love.event.wait freezing game window

How do you properly install and use the timer library? (which folder do you drag it to, which .lua file do you drag it to, ect.)