Hello,
That sounds like a good outline of the project you want to accomplish. One thing to note is if you want your javascript to be able to tell how "long" since a user last fed it, you are going to be needing to use cookies. Cookies are basically a very small file that your javascript creates and saves on the users computer through their browser. Using this, your script will be able to tell the last time the user visited and how "full" their pet was when they left.
Would you be able to create a rough web page so we know what variables we have to work with in your project? From your description, I envision just a picture of some fantastical creature with 3 buttons, "Feed", "Play With", and "Put to Sleep". Functionality of those buttons:
"Feed":
Increment a counter up to a 100 (easy way for me to think of being a 100% full), once counter has hit 100, grey out button to prevent further feeding.
"Play With":
Also use to increment a counter that reflects a pet's "mood" (higher the better?).
"Put to Sleep":
I would maybe change the name to one that doesn't have connotations of euthenasia. But this I would have this button operate as a user's "Exit" button when they are done interacting with the pet. Clicking this would exit out from the script and write the necessary variables to a small cookie for the next time they visit.
The script for this would be pretty straight forward. If interested, I can try to put together some sample javascript code for this, but mainly we want to help you with your project.
Cheers,
Tom
Okay os her e goes.
I want to make a site for "pets". Similiar to neopets, but much more easy. It would go to people like my little sister. A pet (drawing) that can be played with and feeded.
The feeding would go like this:
they click the pet then there comes a selection
Feed
Play With
Put to sleep
etc.
and there would be meters that measure how hungry the pet is or how sleepy it is.. etc.
The fill the meter by clicking example: feed. Then the meter goes a bit up. the a message comes you have fed the pet. the meter has a maximum fed ammount. When it has reahced it can't me fed. but if none feeds it for a while it "burns" out..
Okay so i know how to make things like "this site has been visited # of times" and i'm going to use "This pet has been fed # of times" I need to know how to make the meter thing..
SO it would be a site where you can feed them.
I would use Java Script