Custom Sprites [v1.5]
Posted: April 23rd, 2012, 12:02 pm
Anyone got an idea what's the simplest way to add custom sprites?
Writing pixel by pixel is a pain in the ass.
While i'm anxiously waiting for an answer, I'll try to make an image scanner that will save the image in a text file and can be copy pasted like the other face and poo <--(lol seriously?) sprites.
- LuX
Edit: Here's the project! n'joi
Latest Version: 1.5;
v1.1: Some fixes and cool new features.
-Fixed image size bug
-And something... can't remember...
v1.2: Some fixes and cool new features:
-Better error handling: force continue, etc.
-Slightly better control layout
-Drag drop image path to path strip
-Initial directories are set to desktop
-Probably forgot to list something...
v1.3: Some fixes and cool new features:
-Fixed save bug, where you couldn't save multiple times in one session
-Drag drop image to path strip will now attempt to load the image automatically
-Pointless, but none the less cool feature: Save extension selection!
Save your image in .txt, .lux or .chili No actual difference between them, other than awesomeness.
-Also the program opens at the center of the screen and will pop up nicely side by side
v1.4: Some fixes and cool new features:
-Faster scanning, completely new scan loop
-Images will automatically set their size, finally
v1.4.1: Quick update:
-Error handle fix...
v1.5: Some fixes and cool new features:
-Fast scanning, with crash "protection"
-Auto detect if image is too big
-Estimate scan time
-Direct output to selected folder (makes it a ton faster)
-While scanning it goes to a locked mode to prevent "visual" crashing, to prevent confusion
Bugs currently: Max image size seems to be 423 x 182, so I put a detector to tell if its too big
Insturctions (Old, slightly different than in 1.3):
1. Open. If you fail this, ->
2. Go to LuX: Image and click [...] search for your image, make sure it's an image.
3.5 >OR< drag the image to the path strip, release: automatic laziness...
4. Click [Load Image]. If the path is legit, your image will pop up on the gray area.
5. If you have, write the transparent colors and make sure it's checked. For example if your image has white edges, that you don't want in the final product, set the color as 255, 255, 255 or for black 0, 0, 0, as it is on default.
5.5 Quick tip on the transparent color; If you have no idea what it's RGB is, you can just scan to see what it is.
6. If you want to, you can change the "Line:" to correspond on the variable names in your project.
7. Click [--- Scan ---], in 1.4, instead of scrolling through pixel by pixel, it just throws the whole lump of text at once, expect lag if you have a crappy computer or scan big images.
8. Click [--- Save Text ---] and select directory
9. For pointless reasons you can select the file type you want to save in, default of course *.txt...
10. ????
11. Profit.
Insturctions (new, for 1.5):
1. Open
2. Drag drop to open an image or select through [...]
3. Check and change the settings to match the image (Automatic size, tho)
4. Click [--- Scan ---]
5. Select output folder, name and extension (creates a new file)
6. Click OK! and wait untill the scanning screen disappears
(!6.) If the OK! won't appear, make sure you have given all the information correctly!
7. Remember to be patient when scanning large images, it might take a lot longer that the estimated time tells, since it doesn't count the extra slowdown, it just displays the fastest possible time.
Inform me about any possible bugs
Writing pixel by pixel is a pain in the ass.
While i'm anxiously waiting for an answer, I'll try to make an image scanner that will save the image in a text file and can be copy pasted like the other face and poo <--(lol seriously?) sprites.
- LuX
Edit: Here's the project! n'joi
Latest Version: 1.5;
v1.1: Some fixes and cool new features.
-Fixed image size bug
-And something... can't remember...
v1.2: Some fixes and cool new features:
-Better error handling: force continue, etc.
-Slightly better control layout
-Drag drop image path to path strip
-Initial directories are set to desktop
-Probably forgot to list something...
v1.3: Some fixes and cool new features:
-Fixed save bug, where you couldn't save multiple times in one session
-Drag drop image to path strip will now attempt to load the image automatically
-Pointless, but none the less cool feature: Save extension selection!
Save your image in .txt, .lux or .chili No actual difference between them, other than awesomeness.
-Also the program opens at the center of the screen and will pop up nicely side by side
v1.4: Some fixes and cool new features:
-Faster scanning, completely new scan loop
-Images will automatically set their size, finally
v1.4.1: Quick update:
-Error handle fix...
v1.5: Some fixes and cool new features:
-Fast scanning, with crash "protection"
-Auto detect if image is too big
-Estimate scan time
-Direct output to selected folder (makes it a ton faster)
-While scanning it goes to a locked mode to prevent "visual" crashing, to prevent confusion
Bugs currently: Max image size seems to be 423 x 182, so I put a detector to tell if its too big
Insturctions (Old, slightly different than in 1.3):
1. Open. If you fail this, ->
2. Go to LuX: Image and click [...] search for your image, make sure it's an image.
3.5 >OR< drag the image to the path strip, release: automatic laziness...
4. Click [Load Image]. If the path is legit, your image will pop up on the gray area.
5. If you have, write the transparent colors and make sure it's checked. For example if your image has white edges, that you don't want in the final product, set the color as 255, 255, 255 or for black 0, 0, 0, as it is on default.
5.5 Quick tip on the transparent color; If you have no idea what it's RGB is, you can just scan to see what it is.
6. If you want to, you can change the "Line:" to correspond on the variable names in your project.
7. Click [--- Scan ---], in 1.4, instead of scrolling through pixel by pixel, it just throws the whole lump of text at once, expect lag if you have a crappy computer or scan big images.
8. Click [--- Save Text ---] and select directory
9. For pointless reasons you can select the file type you want to save in, default of course *.txt...
10. ????
11. Profit.
Insturctions (new, for 1.5):
1. Open
2. Drag drop to open an image or select through [...]
3. Check and change the settings to match the image (Automatic size, tho)
4. Click [--- Scan ---]
5. Select output folder, name and extension (creates a new file)
6. Click OK! and wait untill the scanning screen disappears
(!6.) If the OK! won't appear, make sure you have given all the information correctly!
7. Remember to be patient when scanning large images, it might take a lot longer that the estimated time tells, since it doesn't count the extra slowdown, it just displays the fastest possible time.
Inform me about any possible bugs