• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cursor mouse trails for applets

 
hennie louw
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic