Pages: 1
Topic closed
Sorry ahead of time if this is beating a dead horse
For this little graphic tutorial done in v1.4 I will be adding a transparent Earth into the background of my space game set on the Moon's surface, see the game screen below. I initially was going to just add the Earth image as a ghosted sprite. But the more I worked on the game, the more I needed to delete that sprite to get my game back to speed when running (due to all the other sprites and animations I had going on at the same time.)
the background with some game sprites...
the unaltered Earth image I found (licensed for reuse and alteration according to Advanced Google image search) from http://farm2.static.flickr.com/1431/698695850_124e8d8271.jpg
Once I had the Earth From Space image I wanted to use cut out (I used my fave free app, Irfanview) I imported it into Scratch using the "Choose new sprite from file."
This let me drag it to where I wanted it as well as re-size it (Size block), adjust the transparency (ghost effect) till it looked just like I wanted it to. I also painted out a few stars with black that the Earth now covered on the background so they didn't seem to be shining through the planet.
You would think that the next step would be to right click the screen and select "save picture of stage" to export our nice, finished image but don't! This feature will "optimize" (a generous term) the exported image as well as alter the final amount of transparency or ghost effect on the Earth. If you look closely at my image, you will notice that space is not solid black but instead has a misty, blue haze that fades across it. Using "save picture of stage" will destroy all that!
The solution is to take a few extra steps by right-clicking the stage and selecting "grab screen region for new sprite" instead and dragging a square just around the edges of the Earth part of the image. This will create an entirely new sprite from your selection.
Now open that new sprite's Costume tab. Right-click the costume and select "export this costume." The image that you save will be an exact copy instead of the "optimized" result discussed earlier.
Lastly, open your background (mine is the costume for my Stage) costume in Scratch's Paint Editor. Click on the Import button and select your saved image of the transparent Earth. It will join your image as a selection which you can drag to the correct position.
Now just hit save, go back and delete the 2 extra sprites we made and now you have your transparently pasted image using nothing but Scratch.
ps. As usual, I tried to be thorough, especially since this is a tutorial. In practice this whole process can be done very quickly. If you spot any mistakes or have any improvements, please post!
Offline
Thanks and me neither, just stumbled across while working on a game. I thought it was cool so I had to post it!
Offline
That's awesome!
Of course, you could use Control+PrintScreen to take a picture of the screen, get it in Paint, and save the Earth from there - but as you mentioned, your method doesn't require any external programs.
Offline
Topic closed
Pages: 1