Forum Discussion

mgoldberg's avatar
mgoldberg
Reel Rookie
4 years ago
Solved

How to animate images with code

Is it possible to animate "poster" images or sprites through brightscript and not through the interpolation classes described in xml files? I'd like to create images/sprites that will animate dynamically based on code and not predefined xml, for game development.

  • necrotek's avatar
    necrotek
    4 years ago

    If you are making a game use  "roScreen" .  If you want to use sceneGraph to make a game with animations, Build a component to use a timer and observe the fire event to adjust the clipping and offset of a poster node that contains your spritesheet. 

2 Replies

  • I think I found some ways to animate images, I checked out the Snowflake demo, where the bitmaps are described, and the positions are set in the brightscript file.

    • necrotek's avatar
      necrotek
      Roku Guru

      If you are making a game use  "roScreen" .  If you want to use sceneGraph to make a game with animations, Build a component to use a timer and observe the fire event to adjust the clipping and offset of a poster node that contains your spritesheet.