Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / How can my dog run away?

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 17th Jan 2008 21:27
Ok, I know I will need a timer but how can I make to where in a certain amount of time that you don't feed your dog, he runs away or dies. How can I do this?


Formerely Cool Guy Jordan
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 17th Jan 2008 22:59 Edited at: 17th Jan 2008 22:59
You have to think why the dog would run away.
He's either scared, bored, disobedient or hungry. If you have stats for those things then it's a case of making him run away if they get too low.

Bluestar4
19
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 18th Jan 2008 13:28
a dog sim ?

Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 18th Jan 2008 13:40
Use this:



Change the 60 in the "If Elapsed = 60" to whatever time you want in seconds before it runs away.

dog_not_fed would be set to 0 if the player has fed the dog, and set to 1 if it hasn't been fed.

I suggest reading TDK's tutorial on timers if you don't know how to use them, the tutorial is at http://forum.thegamecreators.com/?m=forum_view&t=59347&b=7

Good luck!

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 18th Jan 2008 14:41 Edited at: 18th Jan 2008 14:44
Quote: "a dog sim ?"


You obviously haven't been in WIP for awhile have you?


Thanks Veron.


Formerely Cool Guy Jordan

Login to post a reply

Server time is: 2025-06-02 09:45:19
Your offset time is: 2025-06-02 09:45:19