I am trying to resize an image. I want to stretch the image from the left. By using the trigger "Set Dialog Item Size" and increasing the x parameter, it stretches the image on both sides. Kinda hard to explain....
When I stretch it stretches like this
<---------o------------>
and I need it to stretch like this
o--------------->
I hope that makes sense
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
use 2 dialog item images, 1 for each half of the image. then you can stretch 1 bit and leave the other bit normal. (you will need to cut your image in half though.
Think health bars. When you take damage the bar gets squished from one side. However, when I simply do the trigger it doesn't move the center of the pic, it moves both ends closer (or farther) from the center. I just want the image to stretch/shrink from one end.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
You can solve the problem by make the image tiled property of the dialog item to false, that way the image will not be strectched to fit the dialog but instead stay at its true size
like this guy said, anchoring an image to the center of the screen (or Top or Bottom) will cause it to grow on both sides, anchor it to the sides of the dialog to fix this, anchoring it to anything with Left in it will cause it to grow outwards to the right, which is the way you want.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I fail to see how the two ways of stretching are not the same =/ an image might help us visualize the difference.
@bulletbutter: Go
use 2 dialog item images, 1 for each half of the image. then you can stretch 1 bit and leave the other bit normal. (you will need to cut your image in half though.
@FuzzYD: Go
Think health bars. When you take damage the bar gets squished from one side. However, when I simply do the trigger it doesn't move the center of the pic, it moves both ends closer (or farther) from the center. I just want the image to stretch/shrink from one end.
@bulletbutter: Go
You can solve the problem by make the image tiled property of the dialog item to false, that way the image will not be strectched to fit the dialog but instead stay at its true size
How are you anchoring the image? Center? What if you anchored it to Left, but set an offset for it?
@OneSoga: Go
like this guy said, anchoring an image to the center of the screen (or Top or Bottom) will cause it to grow on both sides, anchor it to the sides of the dialog to fix this, anchoring it to anything with Left in it will cause it to grow outwards to the right, which is the way you want.