B4J Question numbers flying away

Olivier Zeegers

Active Member
Licensed User
Hello,

I am making a counter for a running event.
Every time a runner passes the finish line they can push a big panic button which is linked with USB and initiates an event.

On the screen I display the number of Euros earned. This I have done by creating images of big golden numbers. So seperate images for 0, 1, 2 etc.... Then I break down the counter integer and show the number with the images. So the number 567 is composed of the 5.png, 6.png and 7.png.

see attachment

I would like to let the last number fly to the top of the screen and being faded and getting smaller....
When I adjust the .top property I see the number directly go to the top without visual effect...
Do I have to put a delay in it ?

B4X:
dim top as int = imageView.top
for i = 0 to top
  imageView.top = ImageView.top -1
next
 

Attachments

  • Screenshot_20181118-1234042.jpg
    Screenshot_20181118-1234042.jpg
    66.9 KB · Views: 173
Top