Hi
I'm trying to convert a game made for android where you use the animation library.
b4j unfortunately does not have the animation library similar to B4a
I'm trying to use the SetAlphaAnimated but it is not working, it works only to 0
when the view is visible true and you want put this visible = false
Test using a timer_tick
Test to set the pane visible = true with animation
psplash2.SetAlphaAnimated(1500,1) 'NOT WORK
psplash2.SetAlphaAnimated(1500,0.9) 'NOT WORK
psplash2.SetAlphaAnimated(500,1.0) 'NOT WORK
psplash2.SetAlphaAnimated(500,1) 'NOT WORK
Test to set the pane visible = false with animation
psplash2.SetAlphaAnimated(1500,0) 'WORKS
psplash2.SetAlphaAnimated(500,0) 'WORKS
I m already tryed use callsub and callsubdelayed but dont work too.
i m tryed too put a visible = true before and later the animation code, but the animation dont works.
i made many tests and really dont works when i want put the view visible = true.
i m using java jdk1.8.0_111
how can i fix this?
there is some other code to do the same fade effect?
many thx
I'm trying to convert a game made for android where you use the animation library.
b4j unfortunately does not have the animation library similar to B4a
I'm trying to use the SetAlphaAnimated but it is not working, it works only to 0
when the view is visible true and you want put this visible = false
Test using a timer_tick
Test to set the pane visible = true with animation
psplash2.SetAlphaAnimated(1500,1) 'NOT WORK
psplash2.SetAlphaAnimated(1500,0.9) 'NOT WORK
psplash2.SetAlphaAnimated(500,1.0) 'NOT WORK
psplash2.SetAlphaAnimated(500,1) 'NOT WORK
Test to set the pane visible = false with animation
psplash2.SetAlphaAnimated(1500,0) 'WORKS
psplash2.SetAlphaAnimated(500,0) 'WORKS
I m already tryed use callsub and callsubdelayed but dont work too.
i m tryed too put a visible = true before and later the animation code, but the animation dont works.
i made many tests and really dont works when i want put the view visible = true.
i m using java jdk1.8.0_111
how can i fix this?
there is some other code to do the same fade effect?
many thx