My game in making

Started by
63 comments, last by bloodthirsty vermin 20 years, 6 months ago
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)
My potential is extreme for a 14 year old, Guitar playing, Anime artist.
Advertisement
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]
FOLLOW ME ON TWITTER OR MY BLOG
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
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.
-~-The Cow of Darkness-~-
quote:Original post by cowsarenotevil
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.


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!!!!!!
My potential is extreme for a 14 year old, Guitar playing, Anime artist.
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 (plant.wateredDays >= 3) plant.readyToHarvest = TRUE;

Niko Suni

i might have lift out some usfull info
i use C++ i will stay up correcting every error
i also use SDL and i will use this to learn from my mistakes
then make the final version wich will have networkin ect.
My potential is extreme for a 14 year old, Guitar playing, Anime artist.

This topic is closed to new replies.

Advertisement