Sorry for my slow response, but I'm on holiday and I try to keep away from
my laptop ;)

Allow me to mangle in again,

You assign the image of your cast members to a var - this does NOT create a
reference to the member - so this does NOT manipulate the member in question
in any way.

All you have to do is reassign the data to the image of the member you want
to change when you have completed your manipulation.

You could also directly manipulate the image without intermediate variable -
but it is best to do the former if you do a lot of stuff because vars are
faster.
This way you can also control when the image is updated.

So - after your changes - simply do this:
member(mnum1).image = mnum1

One last remark; try to use more descriptive names for your vars - and use
seperate vars for like for instance your membernums and your images.
That way you can use them later on.

HTH,

Chris (lots of sunshine to you).

----- Original Message -----
From: "Locke Morgan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 05, 2001 6:51 AM
Subject: <lingo-l> Imaging Lingo 2 response1


> Yes, the destination member did return an error in the paint editor, but
> when I allowed it to continue (making it editable in the paint window),
there
> results were still the same.  I did the same thing with the source image,
> with no results.
>
> >Date: Fri, 3 Aug 2001 21:34:35 -0400
> >From: Colin Holgate <[EMAIL PROTECTED]>
> >Subject: Re: <lingo-l> Imaging Lingo 2
> >
> >There are some things about your code that make it seem odd. For
> >example, using the same variable to represent the member one moment,
> >and then the member's image another makes it harder to follow. For
> >now I'm assuming that it ought to work, so something that could upset
> >our plans is that the JPEG destination member may not be available
> >for changing. Open that member in the paint window and try to erase
> >part of it. Do you get an error message?
>
> ~~~~~~~
> Property psourceImage, pdestImage, psourceChannel
>
> on getPropertyDescriptionList
> description =[:]
> < snip >
> addprop description, #psourceImage,[#comment"Source Image",#format#bitmap,
> #default#VOID]
> addprop description, #psourceChannel,[#comment"Source Channel"
> ,#format#integer, #default0]
> addprop description, #pdestImage,[#comment"Destination Image"
> ,#format#bitmap, #default#VOID]
> return description
> end
>
> on exitFrame me
> < snip>
> set mnum1 = (member(pdestImage).membernum)
> set mnum2 = (member(psourceImage).membernum)
> set mnum1 = member(mnum1).image
> set mnum2 = member(mnum2).image
> r1 = sprite(psourceChannel).rect
> r2 = sprite(the currentSpriteNum).rect
> mnum1.copyPixels(mnum2,r2, r1)
> end
> ~~~~~~~~~~~~
>
> W. Locke Morgan
> New Orleans, LA - USA
>
>
> [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!]
>
>


[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