HowToAddCreaturesStendhal: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara not been called GameObjects for a long time. is EntityMap |
imported>Kymara →Add GFX: clean up |
||
| Line 74: | Line 74: | ||
= Add GFX= |
= Add GFX= |
||
Now you need to find a nice sprite for your monster. |
Now you need to find a nice sprite for your monster. |
||
Most RPGMaker 2000 sprites (like at [http://charas-project.net]) works for stendhal. But they are in 24x32 size. |
|||
We need to scale it using scale2x to get the best quality possible to 48x64. |
|||
Either use [http://scale2x.sourceforge.net/ scale2x] or send us the original sprite and we will scale it. |
|||
Please see [[http://stendhal.game-host.org/wiki/index.php/StendhalRefactoringGraphics#Creatures| How to know graphics specifications for creatures]] |
|||
Once you have scale2x, the command to type is ''scalex -k 2 old.png new.png'' |
|||
If the images have a coloured background like those from Charas, it needs to be made transparent. See below for how to do that in [http://www.gimp.org/ GIMP] or use this [[VisualHowToRemoveBackgrounds|Visual Guide]]. |
|||
* Open your png |
|||
* Convert it to RGB mode with Image -> Mode -> RGB |
|||
* Add transparency to the image with Layer->Transparency->Add Alpha Channel |
|||
* Select the coloured background (green from Charas) by doing Tools->Selection Tools->Fuzzy Select (or pressing Z), and clicking on the green background. Make sure that the 'threshold' is set to 0 which means it will only select exactly that green colour. Also turn off 'Antialiasing' and 'Feather edges'. These settings should be available on the gimp main window. |
|||
* Remove the green background by pressing Ctrl-k (or Edit->Clear). Gimp should show the transparency as gray checker board pattern. |
|||
* Repeat the selection and clearing steps for any remaining green areas, if everything was not cleared at once. |
|||
* Save your changes |
|||
You can change the background to clear before you change the scale or send it to someone to change it. The order doesn't matter. |
|||
Now place the sprite in the folder '''data/sprites/monsters/<class>/<subclass>.png''' |
Now place the sprite in the folder '''data/sprites/monsters/<class>/<subclass>.png''' |
||
See also [[StendhalOpenTasks#Monsters and Items| How to know graphics specifications for creatures]] |
|||
= Register the class = |
= Register the class = |
||