Hi lingo-slingers,
got me a little problem with runtime copypixels. Hope you have some ideas.

During runtime I can change position of 4 sprites on the stage, between
these sprites
I calculate a quad which I fill with (the stage).copyPixel... The problem
occurs when I change
a cornerpoint (ie. the loc of one of the sprites) of the quad I get some
kind of trails.
I figure this has to do with the fact that I copy the image of the stage and
then adds the new
drawing ontop of that... How do I avoid getting this smear effect and am I
way off doing it like this?
Please enlighten me =)

on enterFrame me
  aQuad = [sprite(a).loc,sprite(b).loc,sprite(c).loc,sprite(d).loc,]
  me.drawRuntimeQuad(aQuad, member("wall"),0)
end

on drawRuntimeQuad me,quadList, surface, fcolor
  theStage = (the stage).image
  mySurface = member(surface).image
  destQuad = quadList
  sourceRect = mySurface.rect

  theStage.Copypixels(mySurface, destQuad, sourceRect,[#blendLevel:
255,#ink:36,#color:fcolor])
end

Thanks!

/Marcus

m a r c u s   g a r d m a n
.........................................................................
n a r a k i   e d u t a i n m e n t

:: address.  Garvargatan 9 | SE-112 21 Stockholm | Sweden
:: phone. +46 (0)8 785 01 02 | fax. +46 (0)8 692 65 99
:: email. [EMAIL PROTECTED]
:: www.naraki.com


[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