Discuss Scratch

RareScrap
New to Scratch
6 posts

How to add my sprite to the library?

I found library in “C:\Program Files (x86)\Scratch 2\media” and put there my pic “test.png” also i create json “test.json” where I listed the attributes of the sprite:
{
“objName”: “Рюкзак”,
“costumes”: [{
“costumeName”: “test”,
“baseLayerID”: -1,
“baseLayerMD5”: “test.png”,
“rotationCenterX”: 112,
“rotationCenterY”: 91
}],
“currentCostumeIndex”: 0,
“scratchX”: 0,
“scratchY”: 0,
“scale”: 1,
“direction”: 90,
“rotationStyle”: “normal”,
“isDraggable”: false,
“indexInLibrary”: 100000,
“visible”: true,
“spriteInfo”: {
}
}
Then i add a sprite declaration in “C:\Program Files (x86)\Scratch 2\media\libs\SpriteLibrary.json”:
{“name”: “test”, “md5”: “test.json”, “type”: “sprite”, “tags”: , “info”: }


Then I run Scratch and all item in lib are gone. What i do wrong? Sorry for bad eng

Last edited by RareScrap (April 13, 2018 00:29:29)

dude341
Scratcher
1000+ posts

How to add my sprite to the library?

This should be in Advanced Topics, I'll ask an admin to move it there.

Placeholder
RareScrap
New to Scratch
6 posts

How to add my sprite to the library?

thk
RareScrap
New to Scratch
6 posts

How to add my sprite to the library?

bump
byteboy
Scratcher
1 post

How to add my sprite to the library?

Try to use MD5 encode for file name
FreddyFazbear2137
Scratcher
100+ posts

How to add my sprite to the library?

you can't add sprites to the library
dude341
Scratcher
1000+ posts

How to add my sprite to the library?

FreddyFazbear2137 wrote:

you can't add sprites to the library
No.

byteboy wrote:

Try to use MD5 encode for file name
Don't necropost.

Placeholder
goldfish678
Scratcher
1000+ posts

How to add my sprite to the library?

dude341 wrote:

FreddyFazbear2137 wrote:

you can't add sprites to the library
No.
care to elaborate?
dude341
Scratcher
1000+ posts

How to add my sprite to the library?

goldfish678 wrote:

dude341 wrote:

FreddyFazbear2137 wrote:

you can't add sprites to the library
No.
care to elaborate?
Incorrect answer

Placeholder
hedgehog_blue
Scratcher
1000+ posts

How to add my sprite to the library?

dude341 wrote:

goldfish678 wrote:

dude341 wrote:

FreddyFazbear2137 wrote:

you can't add sprites to the library
No.
care to elaborate?
Incorrect answer
Why is it incorrect? Any explanation to back up your post?

RareScrap
New to Scratch
6 posts

How to add my sprite to the library?

byteboy wrote:

Try to use MD5 encode for file name

Thanks. I will try it.

byteboy wrote:

Try to use MD5 encode for file name
Don't necropost.

My problem is still actual.

Powered by DjangoBB