Forums Register Login

cursor mouse trails for applets

+Pie Number of slices to send: Send
what i wana do is make that when someone is one one of the websites i am makeing i ant it to have unique mouse trais that follows the mouse , like maby bubbles or some thing like that
is this done in an applet or some other way ?
i also would like to know if i can use mask images, paste an X on top of an other image that is runnig in animation
please help me with this thanks
+Pie Number of slices to send: Send
You can do all of this in applets... ( Though I think the "bubbles following the mouse" trick is better done in JavaScript... if it was done in an applet, the bubbles would only follow the mouse in the applet panel, not all over the page... )

To draw a mask image over an animation all you would need to do is use double-buffering to draw the animation ( look for other posts in this forum, or in the AWT/JFC/Swing forum to find directions for using double-buffering for animations... ), then, right after drawing the current frame of the animation, draw your mask image. Since it was drawn second, it will appear on top of the animation.

HTH,
-Nate
Crusading Chameleon likes the size of this ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1013 times.
Similar Threads
mousePressed Problem
About AWT MouseEvent
Invoking Method
Basic Concepts of AWT Event Generation
Drag and drop over an iframe
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:50:39.