I tried to make a clickable image that changes the action based on the location on which I clicked it, but it wouldn't work.
I wanted to make the Hogwarts platform 9 3/4 sign with clickable houses on the Hogwarts logo.
Last edited by balala on August 7th, 2019, 3:50 pm, edited 1 time in total.
Reason:Please use <code> tags whenever are you posting code snippets. It's the </> button.
spykyvenator wrote: ↑August 7th, 2019, 2:35 pm
I tried to make a clickable image that changes the action based on the location on which I clicked it, but it wouldn't work.
I wanted to make the Hogwarts platform 9 3/4 sign with clickable houses on the Hogwarts logo.
IfCondition can't be used on meters, just on measures. You added it for nothing to the [Hogwarts Logo] meter, it doesn't work. Add any Calc measure to your code and add it there. For instance, add the following measure:
If you do so, remove the IfCondition from the [Hogwarts Logo] meter.
In addition to that, I also would add a bang to the LeftMouseUpAction to update immediately the newly added measure when you click the meter:
Look closely. There are two Y coordinates. I believe it is just a typo, but this typo is breaking the meter and it will not be shown by your [!ShowMeterGroup G] bang.
Active Colors wrote: ↑August 7th, 2019, 4:02 pm
but this typo is breaking the meter and it will not be shown by your [!ShowMeterGroup G] bang.
But yes, it will be. In such cases the first value of the doubled option is used. If you show a meter / more meters through !ShowMeter / !ShowMeterGroup bangs even if any of its / their options are doubled, the meter(s) are anyway shown. As said, using always the first value of the doubled option(s).
Thank you for your quick answers I wasn't aware of the if condition not wroking on Meters.
I aslo needed a DynamicVariable on the measure to make it work.