Need Advanced "Change Image" Help

conrad74conrad74 Member Posts: 50
edited November -1 in Working with GS (Mac)
I have an actor, that when touched, needs to have the image change to another image. Problem is, the original image is smaller than the image I want to change it to. So, when I change the image to the new one, it shrinks in size to the same dimensions of the original image. Is there a way to change the image without this happening?

Comments

  • debugdesigndebugdesign Member Posts: 886
    you will also need to use the change attribute > actor > size x, size y
  • MotherHooseMotherHoose Member Posts: 2,456
    As you have the [Change Image] occurring in the Rule... touch is pressed or inside

    under the [Change Image]...add the [Change Attribute] self.size.Width = "new image width" and do same for Height

    add in Otherwise: [Change Attribute] original Width and Height...and when touch is released original image size will be correct. (if you want to revert to it)

    MH
Sign In or Register to comment.