Pages: 1
Topic closed
Yup! It's in the reference guide:
Export your sprite as default.sprite and place it into the costumes folder. If you just want to change the default costume, place the picture file named default.jpg or BMP / GIF / PNG into the costumes folder.
No need to edit the source code...
Offline
Can you do anything to change the background?
Offline
Hong1818 wrote:
i am using ScratchSourceCode1.3.1 version. your method is not work for it because no costumes folder inside.
do you have any method to change the default image?
thank you!
Hi, Hong1818.
If you want to change the appearance of Scratch using the Source Code (1.3) you will need to become aquainted with Squeak Smalltalk.
Scratch's graphics are stored in a class variable of ScratchFrameMorph named ScratchSkin, which is a Dictionary. There are methods on the class side of ScratchFrameMorph wich let you alter the default skin and build it from a dictionary of picture files. This way you can exchange the Scratch logo and the Scratch cat costume, which you are required to do if you want to create your own software based on Scratch.
Does this help you along?
Offline
Jens wrote:
Hong1818 wrote:
i am using ScratchSourceCode1.3.1 version. your method is not work for it because no costumes folder inside.
do you have any method to change the default image?
thank you!Hi, Hong1818.
If you want to change the appearance of Scratch using the Source Code (1.3) you will need to become aquainted with Squeak Smalltalk.
Scratch's graphics are stored in a class variable of ScratchFrameMorph named ScratchSkin, which is a Dictionary. There are methods on the class side of ScratchFrameMorph wich let you alter the default skin and build it from a dictionary of picture files. This way you can exchange the Scratch logo and the Scratch cat costume, which you are required to do if you want to create your own software based on Scratch.
Does this help you along?
Dear Jens ,
Thank you for your prompt reply.
I am still new in Squek Smalltalk and still learning to use it now.
I have few questions to ask you and thank you in advance for your replies.
1. The latest source code that I downloaded from Scratch site is version 1.3.1 which do not have the costumes folder that you mentioned in previous reply. I would like to know which version of source code you are using and that contains the costumes folder?
2. I had tried to follow your steps which are check on the ScratchFrameMorph and click on to the ScractchSkin class -> readSkinFrom and initFont fuctions but still not really understand on the codes. Or do I need to go to the instance -> other functions in the instance to change some codes so that I can exchange the Scratch logo and Scratch cat costume? Could you please kindly explain in more details and let me know where is the skin dictionary that I can change the logo and cat costume?
Thank you very much in advance for your reply.
Offline
Hi Hong, I'm also learning the squeak system, looking at the class system, try:
Click on Scratch-UI-Panes, then next window to the right, click on ScratchFrameMorph
Then click on initialization and then in the rightmost frame click on 'SetDefaultSprite'
Here you will see where tests if the default sprite exists, and if so, uses it, I'm still playing with this, I'm a c++ and Java/assembly person, but used smalltalk way back in 80 :-)
Eric
Offline
Jens wrote:
Yup! It's in the reference guide:
Export your sprite as default.sprite and place it into the costumes folder. If you just want to change the default costume, place the picture file named default.jpg or BMP / GIF / PNG into the costumes folder.
No need to edit the source code...
Thanks Jens! I have another question. After I change the "Based on Scratch by MIT" logo, how do I save the new logo? I have been wondering this for a while. I am trying to move around the functions and buttons and I am not sure how to save those positions. Is it the same as the logo? I have tryed all the things I can think of and they are not working so well.
Thanks!
-Bendad
)Offline
Topic closed
Pages: 1