Is there any way to tell the costumes sizes
Eg.
Costume Size X
Costume Size Y
Can anyone make these blocks!!!!!
Offline
use _height and _width.
EDIT: nvm, that ish in flash.
You could use a sprite to do it, or find some way to hack and find the variables that are displayed by the costume thumbnail in the costumes tab.
Last edited by juststickman (2010-06-30 14:04:34)
Offline
To get a costume's height, use this code:
^ self costume form extent y
and for the costume's width, use this:
^ self costume form extent x
in any method you want, and turn it into a block.
Offline
rubiks_cube_guy238 wrote:
To get a costume's height, use this code:
Code:
^ self costume form extent yand for the costume's width, use this:
Code:
^ self costume form extent xin any method you want, and turn it into a block.
or use filteredForm if you want rotation and filters to apply to tthe costume before taking the dimensions.
Offline
nXIII wrote:
rubiks_cube_guy238 wrote:
To get a costume's height, use this code:
Code:
^ self costume form extent yand for the costume's width, use this:
Code:
^ self costume form extent xin any method you want, and turn it into a block.
or use filteredForm if you want rotation and filters to apply to tthe costume before taking the dimensions.
Yeah, good point.
rubiks_cube_guy238 correctly wrote:
To get a costume's height, use this code:
Code:
^ self filteredForm extent yand for the costume's width, use this:
Code:
^ self filteredForm extent xin any method you want, and turn it into a block.
These blocks, unlike the other ones, apply the graphic effects before returning an answer.
Offline
Thank you I am using these in a game on Panther....
I had figured it out myself (took me a while)
Offline