in a reinforced cardboard box floating over the ocean
Posts
25
what would be easyer for this?
Hi, i want to make a sort of like virtual pet that when a visiter stops by, they can feed it ect., and its mood would change if noone visits it for a while, or if too many people bother it it gets annoyed, ect, what would be the best thing for me to learn to program this in?
"meep?"
'Every year, 7300 people die from meeping, please do not meep.'
"MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEE----- *dies*"
An interesting idea
but you need to more clearly define how many images, what period of time, what makes it happy, sad, angry. Remember, different people will visit. Does a new image get shown to all (server-side script) or does each visitor get a unique image- set based on thier interaction. (cookie).
Anything (almost) is possible. The problem is defining the problem.
in a reinforced cardboard box floating over the ocean
Posts
25
images- should be 12(normal, sad, happy, angry, annoyed, bored, wanderd off/hideing, sleeping, eating, playing with string, and chaseing something)
i was wondering if like there could be options to do, like attempt to feed it,give it a string to play with, it would be server side script. lemme give an example:
it sits on a page, if noone visits it for a while (say 2-3 hours) it gets annoyed/wanders off (blank image) for everyone that visits the page.
then if someone trys to feed it, but someone just fed it, it would get annoyed at them and wander off for a little bit
it would sorta be like a gigapet/tamagotchi that sits on the table and whoever wanders by could interact with it, except that its on a web page and wont beep at you till you get annoyed and mute the volume, lol. it would be a picture of a little cat type thing.
Firstly, do you know Perl? That's the server-side script I know best and is the one I would be able to help you with.
Let me outline a word script for you to add to, modify, correct, or throw out.
By the way, you can't feed an LCTT (little cat type thing) if it wanders off (blank image). LOL;
V = visitor checks out your site (could be very short or long intervals)
cs = center stage
V, LCTT cs (doing what?)
V, LCTT cs, 2sec gets annoyed, 2sec fades away (walks off means large animated gif OR DHTML OR both)
V, LCTT cs, fed within 2sec, normal; fed again within 2sec, happy
V, LCTT cs, happy, fed again, gets annoyed.
and so on..
This is the type of word script needed to get started. Keep in mind that horrizontal or vertical motion can be achieved by either an
animated gif, or better, some DHTML.
And all this has to be really detailed. Such a drag
in a reinforced cardboard box floating over the ocean
Posts
25
nope, dont know perl, but ill sure look into learning it.
the only things i know right now is html and some css, lol, oh and a little javascript.
know of any good books i should get to learn perl?
"meep?"
'Every year, 7300 people die from meeping, please do not meep.'
"MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEEP MEE----- *dies*"
I woke up this morning with a LCTT jumping around in my brain and it occured to me that you don't really need a server-side script.
Here's my thoughts...
Since the site is not user specific, it doesn't really matter what a vistor initially sees as long as it's not always the same. So you will need to create a number of mini word scripts, with a beginning and an end, similar to those above. (the fewer the better; less coding). When a visitor arrives, one of these scripts will be randomly activated that will interact with the visitor. If you can prepare the word scripts, I will get you started on a relatively simple javascript/CSS/DHTML solution.
Start with your 12 gifs, ([0] thru' [11]), each representing a mood. Some could also be animated gifs. Now you need the word script similar to those I suggested. Each script will start when someone visits the site. The actual script will randomly selected
So each sequence will consist of multipule... gif, visitor-action, gif ..AND/OR.. gif, elapsed-time, gif. Make up, say 10, different scripts. One thing to remember, any elapsed time should be relatively short (I suggest 1 to 5 sec max) Of course, you could make just one long script and the entry point will be randomly selected. Either way the actual code is relatively simple.
That's about as best as I can explain it.
Programming is 1/3 planning, 1/3 coding, and 1/3 debugging
Bookmarks