Attribute change X/Y Anchor?
Voobus
Member Posts: 4
I have an image that is 384 pixels wide/tall and I have it set to fixed and the width/height as 96/96 so you only see 96 pixels x/y of it at a time. I am trying to change the attribute of Vertical/Horizontal Anchor via key press.
Think of it as a sprite sheet, which it is. I am simply trying to change which part of the image is being shown depending on arrow key press (direction).
I have the movement understood, but here's what I have after the move:
Change Attribute: self.Graphics.Vertical Anchor To: __________________
I have tried a few things, but I am simply not understanding what to put in the blank. The image is set up in a 96x96 pixel grid if that helps. I simply need to change the value to match the direction it is moving.
Thanks?
Think of it as a sprite sheet, which it is. I am simply trying to change which part of the image is being shown depending on arrow key press (direction).
I have the movement understood, but here's what I have after the move:
Change Attribute: self.Graphics.Vertical Anchor To: __________________
I have tried a few things, but I am simply not understanding what to put in the blank. The image is set up in a 96x96 pixel grid if that helps. I simply need to change the value to match the direction it is moving.
Thanks?
Comments
Horizontal = Fixed
Vertical = Fixed
. . . and then change the Horizontal and Vertical Anchors, with 'Left', 'Bottom' and 'Right', which should give you 9 positions . . . . . but as you've discovered it doesn't work !
Why not simply have 16 separate 96x96 images and use 'Change Image' ?
Why not simply have 16 separate 96x96 images and use 'Change Image' ?