Hi,
Thanks i was looking for that! However i'd like to go further if possible.
To begin my tour, i check the var "intro_done". If false, i show, to present, the navigation panel and options before hiding them with a delayed call action:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<action name="intro">
if(intro_done === null, set(intro_done,false));
if (intro_done == false,
set(view.hlookat, 117.34);
set(view.vlookat, 9.46);
zoomto(90,linear(28));
moveto(78.87,11.18, linear(50));
shownav();
delayedcall(4, hidenav());
set(intro_done,true);
);
</action>
<action name="shownav">
tween(plugin[bouton_nav].y, 55);
tween(plugin[fond_nav].y, 0);
</action>
<action name="hidenav">
tween(plugin[bouton_nav].y, 0);
tween(plugin[fond_nav].y, -55);
tween(plugin[left].y, -50);
</action>
|
I have different plugins to hide. I write a hide action for each of them, that way, if user click on one of them before the delayed call i could cancel the concerned action. How to do? That's the point.! The <events onclick="" /> is a gobal one. is there a way to assign a first click event to a specified plugin?
Thanks.
Steph