GetBrushFromPieceOfPicture
Posted: Fri May 14, 2010 11:26 pm
Since i at least didint receive any answers on how to actually get this done in newbie section, i guess there aint a way in hollywood for this yet, so wishlist request for new command:
GetBrushFromPieceOfPicture(PictureID, BrushID, X, Y, Width, height)
Ie.
GetBrushFromPieceOfPicture(1, 2, 30, 40, 100, 100)
Would result in creating a Brush with ID 2, from picture 1 starting from (30,40) coordinates and takin 100x100 piece from that picture.
Thiskind of command have been i nBoth Amos as well as BlitzBasic, but hollywood seems to be missing this kind of option which makes making moving objects from pictures bit time consuming since at least so far only way i can fugre to do this is to use some image manipulation program and making each brush as independent image and then saving them as brush and loading in actrual program.
In Amos and Blitzbasic i just used to do one picture that for example contained all the different images that the character could be having during the game and then just used this... maybe it was GetAShape command in loop in way of:
temp=0
for temp=1 to 10
GetAShape(temp, 102*temp, 10, 100, 100)
next temp
and i would get 10 images grabbed from same picture for my main character to positions 1-10.
GetBrushFromPieceOfPicture(PictureID, BrushID, X, Y, Width, height)
Ie.
GetBrushFromPieceOfPicture(1, 2, 30, 40, 100, 100)
Would result in creating a Brush with ID 2, from picture 1 starting from (30,40) coordinates and takin 100x100 piece from that picture.
Thiskind of command have been i nBoth Amos as well as BlitzBasic, but hollywood seems to be missing this kind of option which makes making moving objects from pictures bit time consuming since at least so far only way i can fugre to do this is to use some image manipulation program and making each brush as independent image and then saving them as brush and loading in actrual program.
In Amos and Blitzbasic i just used to do one picture that for example contained all the different images that the character could be having during the game and then just used this... maybe it was GetAShape command in loop in way of:
temp=0
for temp=1 to 10
GetAShape(temp, 102*temp, 10, 100, 100)
next temp
and i would get 10 images grabbed from same picture for my main character to positions 1-10.