jdavidw13
07-25-2002, 06:13 PM
Hi all,
Well I've made a script that controls a little animated character. I'm making him interact with the users, just to provide a little life to a dead page. Basicly, the script goes through an endless loop calling a personality function, which gets him to do what he does, then it calls an animation function which will update his position on the screen and flip the current image to be displayed, based on whether he's walking or talking or whatever. I don't want to preload all his images for everything he does, because as I add more personality, it could add up to lots of images. What I want to do is preload some basic images, for walking left and right, ect., then when he changes personality, load the images for that personality. I really don't know how to load images in the middle of the script, and any help would be appreciated.
Thanks all,
JD
Well I've made a script that controls a little animated character. I'm making him interact with the users, just to provide a little life to a dead page. Basicly, the script goes through an endless loop calling a personality function, which gets him to do what he does, then it calls an animation function which will update his position on the screen and flip the current image to be displayed, based on whether he's walking or talking or whatever. I don't want to preload all his images for everything he does, because as I add more personality, it could add up to lots of images. What I want to do is preload some basic images, for walking left and right, ect., then when he changes personality, load the images for that personality. I really don't know how to load images in the middle of the script, and any help would be appreciated.
Thanks all,
JD