OK, here a folder with all the tokens I use. You find the tiles in the "Dalles" repertory, and the other tokens in every other directory.
https://drive.google.com/file/d/1uJiEOUisX77uaZZcMvKmSYU2k5uif5U9/view?usp=sharing
My script is very simple.
Code: ags
EDIT : it seems very strange, some sprites are displayed strangely (as I have shown in my previous screenshot), but some sprites don't appear at all, like if they were totally transparent...
https://drive.google.com/file/d/1uJiEOUisX77uaZZcMvKmSYU2k5uif5U9/view?usp=sharing
My script is very simple.
struct Token
{
DynamicSprite *ds;
};
Token token[50];
function CreateTokens(int id, String path, int angle)
{
token[id].ds=DynamicSprite.CreateFromFile(path);
if (angle>0) token[id].ds.Rotate(angle);
gTabletop.controls[id].NormalGraphic=token[id].ds.Graphic;
gTabletop.controls[id].Visible=true;
// etc...
}
EDIT : it seems very strange, some sprites are displayed strangely (as I have shown in my previous screenshot), but some sprites don't appear at all, like if they were totally transparent...