Little Animation walking on the screen

Hey there guys. I have seen a few little applications on the internet where once you open them, they will have a little 2d character that walks across the taskbar and other windows. Say for instance it is on a window, it is able to fall off onto windows or the taskbar below, as well as being able to be 'grabbed' when you hold your left mouse button on it so you can drag and drop the little guy where you like on your screen so he can roam about on windows and the taskbar. as well as open up options for the little guy if you right click on him or on a systray icon that is linked with the animating fella.

So I am wondering if anybody else has done this, if so would it be possible to get the source or any other form of example to see how it all works? It would be really neat if that were possible.

Ohh one more thing; would it be possible to also have a little form window that is also linked with the animating character on screen with a frame inside the application window whereby if you double clicked on the animating character, it would 'teleport' him inside the frame where he ends up being trapped and only walks inside the frame until you double click him again, then he is outside again?

It seems like a huge ask but any help or examples would be fantastic. Thanks :)
[1330 byte] By [Dark Potato] at [2007-11-20 10:10:40]
# 1 Re: Little Animation walking on the screen
You may not get an exact example of what you have explained. However, you can get working samples from www.planetsourcecode.com.

I remember seeing a CAT animation somewhere, but I don't remember where I got the code from. I don't even have the code for it now. Probably if you try your luck with Planetsourcecode, you will get a lot of samples.
Shuja Ali at 2007-11-9 19:35:36 >
# 2 Re: Little Animation walking on the screen
You may not get an exact example of what you have explained. However, you can get working samples from www.planetsourcecode.com.

I remember seeing a CAT animation somewhere, but I don't remember where I got the code from. I don't even have the code for it now. Probably if you try your luck with Planetsourcecode, you will get a lot of samples.
I tried searching on planetsourcecode and the only one I found, didn't actually work so I am not sure where else to go :(
Dark Potato at 2007-11-9 19:36:36 >
# 3 Re: Little Animation walking on the screen
Just a suggestion which may work... ( with a lot of effort )
Have a few pictures, let's presume 10.
Now, with each of these pictures we show different frames of the animation. We can display these frames on a window ( shaped like the picture ), the frames will increment via timer .Based on certain events, we load certain frames. It is possible, but as I've said, it's not an overnight thing, there is a lot of APIs involved
HanneSThEGreaT at 2007-11-9 19:37:40 >
# 4 Re: Little Animation walking on the screen
Ah, found a link!! :D

Have a look here :
http://www.codearchive.com/list.php?go=0212&start=20

Download the item named Screen Mate ( simple source code - VB6)

The third one in the list.
HanneSThEGreaT at 2007-11-9 19:38:40 >
# 5 Re: Little Animation walking on the screen
Ah, found a link!! :D

Have a look here :
http://www.codearchive.com/list.php?go=0212&start=20

Download the item named Screen Mate ( simple source code - VB6)

The third one in the list.
Thanks for the link, it didn't help me much but thanks again :)

So I have been playing around and I have got the images (each sprite image) to randomize but now I would like to be able to pick up the the animated character when I hold my left mouse click on him so when I let go of the mouse click, he will fall until he hits the bottom of the screen, then resume his randomized animations/events.

So how do I write this in VB6? I am a little confused as to how I tell VB that when I hold my left mouse click on the randomizing images on screen, I will be able to move the animation around on the screen and when I let go he will fall until he hits the bottom of the screen, and resume his randomizing animations and events?
Dark Potato at 2007-11-9 19:39:39 >
# 6 Re: Little Animation walking on the screen
This should get you started ( or at least in the right direction )
HanneSThEGreaT at 2007-11-9 19:40:44 >
# 7 Re: Little Animation walking on the screen
This should get you started ( or at least in the right direction )
Thankyou Sir! :)
Dark Potato at 2007-11-9 19:41:37 >