Hi, I am trying this and the problem is if the icon is not a simple box I mean it's an image, that image animation is not "centered". The problem is here but I can't figure it out:
cptdeadman wrote: ↑May 13th, 2020, 9:35 pm
Hi, I am trying this and the problem is if the icon is not a simple box I mean it's an image, that image animation is not "centered". The problem is here but I can't figure it out:
Certainly would be much better to have the cat_icon.png image, however I think I can tell even this way what's not going well. Problem is that you have a square image (its width and height are both set initially to 256, then both are increasing with 20 pixels on each change of the Size variable), but when start resizing it, the Y option (so its vertical position) is reduced only with 2.5 pixels per one change of the Size variable. But its height is increasing with 200 pixels (from 256 to 456). So, initially the vertical position of the meter was 25 and its height was 256 and after the animation became 0 and 456, respectively. This certainly leads to a displacement of the increased meter.
The solution is to replace the Y option of the [MtBackground] meter with Y=(10*(10-#Size#)) (this moves the meter a little bit down, from where it initially was placed).
balala wrote: ↑May 14th, 2020, 7:30 am
Certainly would be much better to have the cat_icon.png image, however I think I can tell even this way what's not going well. Problem is that you have a square image (its width and height are both set initially to 256, then both are increasing with 20 pixels on each change of the Size variable), but when start resizing it, the Y option (so its vertical position) is reduced only with 2.5 pixels per one change of the Size variable. But its height is increasing with 200 pixels (from 256 to 456). So, initially the vertical position of the meter was 25 and its height was 256 and after the animation became 0 and 456, respectively. This certainly leads to a displacement of the increased meter.
The solution is to replace the Y option of the [MtBackground] meter with Y=(10*(10-#Size#)) (this moves the meter a little bit down, from where it initially was placed).
Last edited by balala on August 23rd, 2020, 4:39 pm, edited 1 time in total.
Reason:Please use <code> tags when you're posting code snippets. It's the </> button.