Page 1 of 1

Costume image file picker

Posted: Oct 5th, '17, 16:53
by SimpleSi
Manged to mangle together a few blocks to give my self a basic image file picker for costumes

Although it doesn't change the image in the images tab - the selected costume survives the project beign opened and closed so it'll do for now

(I've converted all Scratch images into .png and put them inside my GP folder

Just going to add a bit of navigation and then I'll upload the script

Re: Costume image file picker

Posted: Oct 6th, '17, 11:11
by SimpleSi
Done a bit more work and here is what should be a working version as both a project and a class

from Project notes

Code: Select all

Special utility block (not intended to be put inside a script) that lets you choose a costume from 
images in your GP folder 

To use

Click on the block (preferably direct from MyBlocks) and then select an image
The image will be temporarily applied as the costume so you can see it

You can then click OK to select and add it to Images tab

Or press Cancel to restore original costume

Or view another image

The only know issue is the fact that the menu of files will move down and across the screen on 
each mouse-click :)

Hopefully I can can find a method of avoiding this in future versions :)

JFI If you go to the end of my Scratch to GP article - you can find a link to a zipped file of all the 
Scratch costumes (converted to .png from .gif where needed)

AFAIK, these images are free to use outside of Scratch under the terms of the Creative 
Commons Attribution-ShareAlike 2.0 license 

Re: Costume image file picker

Posted: Oct 6th, '17, 21:37
by SimpleSi
Found more engine room code I can re-use

It now has option of viewing thumbnails of the .png files (click on drawer to set option)

Please note - it can take a noticeable amount of time when in thumbnail mode for the filelist to appear so please be patient :)

Re: Costume image file picker

Posted: Oct 6th, '17, 22:54
by JohnM

Re: Costume image file picker

Posted: Oct 22nd, '17, 09:27
by Picochilla
very interesting!