Sie sind nicht angemeldet.

1

Sonntag, 12. Juni 2016, 00:04

how can I do this? height + height (Solved)


how can I do this?
delayedcall(1, tween(plugin[demo].y,get(plugin[demo].height + height)));

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »ArturoJM« (12. Juni 2016, 00:30)


Timescale

Schüler

Beiträge: 120

Wohnort: Netherlands

Beruf: Archaeologist, Timescale R&D

  • Nachricht senden

2

Sonntag, 12. Juni 2016, 00:10

http://krpano.com/docu/actions/#add


You can't simply use opperators like that. You need to either do it in pure JS, or use the math functions like add, which you can find in the documentation.

3

Sonntag, 12. Juni 2016, 00:16

Thank you

4

Sonntag, 12. Juni 2016, 00:28

if someone finds it useful .

delayedcall(1,
set(val, get(plugin[demo].height));
add(val, get(plugin[demo].height));
trace(val);
tween(plugin[demo].y,get(val)));

5

Montag, 20. Juni 2016, 20:11

delayedcall(1,
mul(val, get(plugin[demo].height),2);
tween(plugin[demo].y,get(val));
);

6

Mittwoch, 22. Juni 2016, 21:35

Hi,

you could also calc - e.g.:

Quellcode

1
tween(plugin[demo].y, calc(plugin[demo].height * 2));


Best regards,
Klaus