wwsy
January 4, 2021, 5:47am
1
请问各位大神,图像精灵就像地球围绕着太阳这样旋转的,代码怎么写
She wants to show an image sprite revolving, like Earth.
wwsy
January 4, 2021, 8:15am
5
真的没人知道吗?图像精灵就像地球围绕着太阳这样旋转的,代码怎么写
I don't know about the image sprite, but have you tried using GIFs?
For that you can also try -
(This topic was edited on 2022/06/21)
Hello friends,
this extension is about inserting animated gifs in our applications.
It needs an Image component.
The image can be clickable and transparent background.
Blocks:
LoadGif, needs a Image component. Image file can be in asset, it is only necessary to write its file name.
[It could also be in the SdCard, in this case we would write the absolute address /mnt/sdcard/directorio/file.gif]
We can set a color mask for the transparent backgroun…
Hello friends,
with this extension we can create an animated GIF by adding static images.
Blocks:
Start: Output file name. Example: /mnt/sdcard/my_gif.gif
SetRepeat: Sets the number of times the set of GIF frames should be played. Default is 1; 0 means play indefinitely. Must be invoked before the first image is added.
AddFrame: Adds next GIF frame. The frame is not written immediately, but is actually deferred until the next frame is received so that timing data can be inserted. Invo…
If you have the related pictures
Is this the effect you want?
sun2.aia (3.8 MB)
1 Like
wwsy
January 5, 2021, 8:23am
9
我要的就是这张gif图片这样的效果,小哥哥能不能把代码转成中文给我,谢 了
Anke
January 5, 2021, 9:26am
10
Try one of these 3 blocks (all should work, but the second only with Companion):
Apart from the circular motion, the earth also rotates. In the first post you wrote about the sprite and not about the gif file, so before asking next time, think about what you need.
Anke
January 5, 2021, 10:22am
12
There are only 2 slashes with the TaifunTools.PathToAssets
method.
→ @Taifun
And I get this error on Android 11:
Taifun
January 6, 2021, 7:44pm
13
thank you, this is now fixed in Version 21a
Taifun
1 Like