Sie sind nicht angemeldet.

1

Freitag, 19. Februar 2016, 17:27

Cannot tween bgborder ?

Hi,

I'm trying to tween bgborder for container, but nothing works. Is this possible?

My attempts:

Quellcode

1
2
3
4
5
tween(layer[cont].bgborder, 3,9,3,9 0xffffff 1.0, 0.8, default);

tween(layer[cont].bgborder, '3,9,3,9 0xffffff 1.0', 0.8, default);

tween(layer[cont].bgborder, '3 9 3 9 0xffffff 1.0', 0.8, default);

Nothing works, it tweens only the first width value "3" for all borders and sets default color and alpha, which is 000000 and 1.0

Maybe there is some workaround?

2

Mittwoch, 23. August 2023, 12:30

Same question. Is it solved yet?

3

Mittwoch, 23. August 2023, 14:00

you can't tween such a value "3 9 3 9 0xffffff 1.0", only numbers

4

Mittwoch, 23. August 2023, 16:33

Tween a value and use the Update function to set the border with the tweening value on every step. Might not be the most performant thing maybe though.