Search found 6 matches

by rockstar0419
Fri Feb 21, 2014 2:26 am
Forum: General
Topic: Beginner Coding Problem 2
Replies: 9
Views: 4809

Re: Beginner Coding Problem 2

At the end of this if statement, just before you hits its end: if love.keyboard.isDown("z") and cooldown < 0 then So in the program you posted, that would be here: if smallshackCounter == 3 then smallshack4State = "drawn" lumber = lumber - 50 smallshackCounter = smallshackCounte...
by rockstar0419
Thu Feb 13, 2014 11:38 pm
Forum: General
Topic: Beginner Coding Problem 2
Replies: 9
Views: 4809

Re: Beginner Coding Problem 2

function love.update( dt )   cooldown = cooldown - dt   if love.keyboard.isDown("z") and cooldown < 0 then     -- all your code goes here     cooldown = 5 -- this will install a 5 second wait because cooldown will now be larger than 0 for 5 seconds   end end After trying to use Plu's way,...
by rockstar0419
Thu Feb 13, 2014 10:58 pm
Forum: General
Topic: Beginner Coding Problem 2
Replies: 9
Views: 4809

Re: Beginner Coding Problem 2

Alright, thanks.
by rockstar0419
Thu Feb 13, 2014 1:48 am
Forum: General
Topic: Beginner Coding Problem 2
Replies: 9
Views: 4809

Beginner Coding Problem 2

Basically, the game I am making is one in which you must rebuild a town after a natural disaster. When you press the "z" key and you have at least 50 lumber, a house is drawn. However, whenever I press the "z" key multiple houses are drawn at the same time because you can make mu...
by rockstar0419
Wed Dec 11, 2013 12:09 am
Forum: General
Topic: Beginner Coding Problem
Replies: 3
Views: 1994

Re: Beginner Coding Problem

Alright, thanks. I see where I went wrong there.
by rockstar0419
Tue Dec 10, 2013 11:13 pm
Forum: General
Topic: Beginner Coding Problem
Replies: 3
Views: 1994

Beginner Coding Problem

In my simple game, you must rebuild your houses after a natural disaster. But it seems that I have run into a dilemma. When the "z" key is pressed, I want a house drawn, given there is 50 lumber in the stockpile. During the debugging, when I press the "z" key, no house appears, n...