BGRASpriteAnimation
│
English (en) │
español (es) │
Overview
BGRASpriteAnimation is a graphic control developed with BGRABitmap library. Is part of BGRAControls package. This control is usefull to create animations from bitmap.
Main
First animation
Add a new BGRASpriteAnimation from "BGRA Controls" component tab.
The next step is load a "sprite". A sprite is a bitmap that contains all the frames of animation. To load a sprite select "BGRASpriteAnimation1". In the Object Inspector click on the property "Sprite (TBitmap)[...]". Load the sprite the same as you load any bitmap.
This is the sprite we will use to explain the component working:
We can say the sprite dimensions are 100x500 px. It has 5 frames, so each frame is 100x100 px.
The next step is tell the component that the sprite has 5 frames. To set the number of frames in the Object Inspector click on the property "SpriteCount" and set the value to 5.
Now you can run the application and see the resulting animation.