Adding animation frames

BlitzMax Forums/BlitzMax Programming/Adding animation frames

TomToad(Posted 2007) [#1]
How would I go about adding frames to an existing animation? For example, suppose I had an animated TImage:
Local Animation:TImage = LoadAnimImage("MyAnim.png",64,64,0,8)
'8 frame animation

And I wanted to add another TImage as an aditional frame to the animation:
Local NewFrame:TImage = LoadImage("NewFrame.png")
'Now I want to add NewFrame to Animation as 9th frame



tonyg(Posted 2007) [#2]
Not extensively tested so feedback welcome



TomToad(Posted 2007) [#3]
Thanks tonyg. I think that's exactly what I'm looking for. I assume this is cross-platform as well.


tonyg(Posted 2007) [#4]
It's standard Bmx code so should be.