how to make a hit and miss counter
like the example of San7 here:
https://novosibpano.ru/VT/naperst/
Thanks
how to make a hit and miss counter
like the example of San7 here:
https://novosibpano.ru/VT/naperst/
Thanks
Thanks San7.
Best
Thanks San7.
Best
This works great, but what I'm looking for is that when I click on certain hotspots, it shows how many misses in one layer and how many hits in another, like in your example.
Thanks
Hello, this is a simple example. In it, the "okey" variable is switched "true / false" and, depending on the check, is displayed in the appropriate layer
<action name="start" autorun="onstart">
set(okey, false);
set(yes_ch, 0);
set(no_ch, 0);
</action>
<layer name="test" type="text" html="click" onclick="switch(okey); chek();"/>
<action name="chek" >
if(okey,
inc(yes_ch);
calc(layer[yes_l].html, 'YES = ' + yes_ch);
,
inc(no_ch);
calc(layer[no_l].html, 'NO = ' + no_ch);
);
</action>
<layer name="yes_l" type="text" x="100" html="YES = 0" />
<layer name="no_l" type="text" x="200" html="NO = 0" />
Display More
Display Moreaction name="start" autorun="onstart">
set(okey, false);
set(yes_ch, 0);
set(no_ch, 0);
if(okey,
inc(yes_ch);
calc(layer[yes_l].html, 'YES = ' + yes_ch);
,
inc(no_ch);
calc(layer[no_l].html, 'NO = ' + no_ch);
);
</action>
Thanks San7
Don’t have an account yet? Register yourself now and be a part of our community!