You are not logged in.

ser4ep

Beginner

  • "ser4ep" started this thread

Posts: 5

Location: Viborg; Russia

  • Send private message

1

Friday, November 4th 2011, 1:06pm

where the error?

Hello!
changed the code from the example of the official "demotour-kuchlerhaus"
original

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<action name="openthumb">
 if(%2 != NEXT,
   set(pos,0);
   copy(curpos,plugin[%1].thumbpos);
   set(xdst, 0);
   set(ydst, 0););

   if(pos LT curpos,
  inc(pos);
  inc(ydst,90);
  sub(ymax, stageheight, 100);
  if(ydst GT ymax, inc(xdst,90);set(ydst,0); );
  openthumb(%1,NEXT);
  ,
  add(xdst,10);
  add(ydst,10);
  tween(plugin[%1].x, get(xdst) );
  tween(plugin[%1].y, get(ydst) );
  tween(plugin[%1].width, 80);
  tween(plugin[%1].height, 80);
  );
</action>


my version

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<action name="openthumb">
    	for(set(pos,0);
    	copy(curpos, plugin[%1].thumbpos);
    	set(xdst, 0);
    	set(ydst, 0);
    	,
    	pos LT curpos
    	,
    	if(pos GE curpos, add(xdst,10);
                  	add(ydst,10);
                  	tween(plugin[%1].x, get(xdst) );
                  	tween(plugin[%1].y, get(ydst) );
                  	tween(plugin[%1].width, 80);
                  	tween(plugin[%1].height, 80);
     	);
    	,
    	inc(pos);
    	inc(ydst,50);
    	sub(ymax, stageheight, 100);
    	if(ydst GT ymax, inc(xdst,90);set(ydst,0) );
    	);
	</action>


open all but one preview,that I missed?Thank you