I'm getting a yellow flash on screen when I set the member of a sprite.

First, I'm hiliting the text with this code:

       pDotSprite.member.regpoint = point(0,0)
       pDotSprite.member.image = hiliteImage
       set pDotSprite.rect = targetRect

Then when I want to move on, I use this code to remove the hilite:

   pDotSprite.member.image.fill(rect(0, 0, pDotSprite.member.image.width, 
pDotSprite.member.image.height), rgb(255, 255, 255))
   pDotSprite.member.image = kSaveDotImage
   set pDotSprite.rect = rect(-1, -1, 0, 0)

The second line is the problem--when I set the member to kSaveDotImage, it 
fills the pDotSprite rect with the yellow hilite. At that point, both the 
member and the image have rects of 0,0,1,1.

The problem is, the sprite still has a rect of 244,336,683,390, which is 
the size of the image I drew originally. I suppose that's why it's being 
flooded with the hilite color.

I've tried setting the sprite rect before I change the member. I've tried 
changing the member's rect before, also. I don't seem to be able to change 
the rect of the sprite, though.

Any ideas?

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to