My game in making
I am making a game that is harvest moon like
and i was wondering about the exact uses of the if statement
could it be used for after three days if your charachter
has watered the plants everyday for three days they are ready for harvest? and i am stumped on a time system..days hours minutes(i dont want to go on real time because it would take forever)
Your making a game but don't know if statements?
EDIT: Sorry that was kinda rude, but you gotta know how to program before you can program a game..
Anyways the next poster has better information... and good luck!
Please visit Turt99 Productions
[edited by - Turt99 on October 16, 2003 5:13:04 PM]
EDIT: Sorry that was kinda rude, but you gotta know how to program before you can program a game..
Anyways the next poster has better information... and good luck!
Please visit Turt99 Productions
[edited by - Turt99 on October 16, 2003 5:13:04 PM]
make the game day based.
20 mins = a day or somthing
or let the player change to the next day by say having a sleep option.
if statement would then work on the day number and other vars based on watering
20 mins = a day or somthing
or let the player change to the next day by say having a sleep option.
if statement would then work on the day number and other vars based on watering
quote:Original post by Turt99
Your making a game but don''t know if statements?
You''re making a game but don''t know how to read? He never said that he doesn''t know how to use if statements.
quote:Original post by cowsarenotevilquote:Original post by Turt99
Your making a game but don''t know if statements?
You''re making a game but don''t know how to read? He never said that he doesn''t know how to use if statements.
ummm he did say "and i was wondering about the exact uses of the if statement"
it sure implies he doesn''t know how to use if statements, whether he came out and said it or not.
quote:Original post by DrEvil
it sure implies he doesn''t know how to use if statements, whether he came out and said it or not.
Ill throw you a friggen bone alright......I KNOW HOW!!!!!!
hmm heres how I might do it in c
if (number_of_times_plant_watered >=3)
//your statements here
end
of course you may need to get more complicated because this will only check if the plant has been watered 3 times and doesn''t take days into account
if (number_of_times_plant_watered >=3)
//your statements here
end
of course you may need to get more complicated because this will only check if the plant has been watered 3 times and doesn''t take days into account
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement