Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

bloodthirsty vermin

My game in making

This topic is 5454 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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"


Share this post


Link to post
Share on other sites
it sure implies he doesn''t know how to use if statements, whether he came out and said it or not.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!