Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Timer for bitmap show in sequence

Featured Replies

Hi all XML FS9 Need to show 10 bitmaps over 3 or less seconds. Will use case with an L:var. How can I code to show them smoothly in sequence.

Paul EGLD

Hi Paul,Personally, I don't use structures with more than 2-3 bitmaps anymore (unless they are really big ones). Instead, I use only one image with the whole sequence included, and a command to select which one to show. This saves quite a number of resources, less bmps to load on init, less code to write, and only one bmp in the folder is easy to manipulate.Now, about your question, why don't you try with a simple counter? For example, taking roughly 18 as a second/hz unit, you can change bitmaps every 5 cycles for a total of 50 cycles/10 bmps, or almost 3 seconds.Tom

  • Author

Hello Tom The bitmaps do not rotate or shift they change color so I need to show all of them. I have not used the the tick before and don't know how to code it(I think it can go in update ?) Thanks Paul

Paul EGLD

> The bitmaps do not rotate or shift they change color so I>need to show all of them.>I wish I could understand what you want to achieve...> I have not used the the tick before and don't know how to>code it(I think it can go in update ?)>It's very simple, something like this: (YourLVar) ++ d 50 <= * d (>YourLVar) 5 div BMP0BMP1.....BMP10 Tom

  • Author

Tom The code works OK, I now need a switch to start the timer and reaching 10 it stops. Then with the switch I can start the timer and goes back to 0. The code is for light bitmap to get brighter. Thanks Paul

Paul EGLD

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.