Can I use an action to dynamically add another folder to the hotspot's image path to dynamically change it?
Dynamic hotspot
-
-
Hi,
yes of course that is possible.
Can you be a bit more specific? so we can help you on the code.Tuur
-
if(_lang == 'ko',
set(hotspot.tag, ko);
show_hotspots();if(hotspot.tag == 'ko',
trace('url=', get(hotspot.url));
,
);
,
if(_lang == 'en',
,
);
);
I want to get the path of the entire hotspot of the current scene and manipulate part of the path.The current hotspot path is
<hotspot name = "pension_001" url = "bar_content.png tag =" "/>I want to put the folder path part before bar_content.png using action.
-
if(_lang == 'ko',
set(hotspot.tag, ko);
show_hotspots();if(hotspot.tag == 'ko',
for(set(i,0), i LT hotspot.count, inc(i),
set(hotspot[get(i)].visible,true);
calc(path, 'img/english/' + hotspot[get(i)].url);
set(hotspot[get(i)].url, get(path));
);
,
);
,
if(_lang == 'en',
,
);
);This is done by adding the folder path before the path of the hotspot. thank you.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!