ok, im kinda new to VBscript, and i mostly use the web to find the codes i need, but i couldnt find anything on something like creating some kind of automatic behaviour, like barking and such, or get it to respond to you (i.e it wags its tail when you pet it)
hope anyone can help me
(please move this to the correct place)
Last edited by Shade; 09-14-2007 at 02:32 AM. Reason: wrong forum
Most, if not all, artificial intelligence [ AI ] is done by programming logic. Essentially a computer knows two states zero or one - one being true, zero being false.
For an object to respond to interactions, the programmer needs to anticipate all actions that could possible be performed on that object.
In your example, you would need two methods - one that determine if the object [dog] is being pet, and another to move the tail. The "is being pet" method will return a boolean value [either true or false] then you can use that value to create the logic:
So once you know how to make a tail wag and listen to events, making the AI is just a bunch of logic.Code:if ( isBeingPet() ) { wagTale(); }
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks