Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » How to add my sprite to the library?
- 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
{
“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
- 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?
No. you can't add sprites to the library
Don't necropost. Try to use MD5 encode for file name
Placeholder
- goldfish678
- Scratcher
1000+ posts
How to add my sprite to the library?
care to elaborate?No. you can't add sprites to the library
- dude341
- Scratcher
1000+ posts
How to add my sprite to the library?
Incorrect answercare to elaborate?No. you can't add sprites to the library
Placeholder
- RareScrap
- New to Scratch
6 posts
How to add my sprite to the library?
Try to use MD5 encode for file name
Thanks. I will try it.
Don't necropost. Try to use MD5 encode for file name
My problem is still actual.
- Discussion Forums
- » Advanced Topics
- » How to add my sprite to the library?