Toggle menu
2
16
17
151
The My Singing Monsters Modding Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Sprite Editing: Difference between revisions

From The My Singing Monsters Modding Wiki
Content added Content deleted
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{Template:Beginner}}
{{Template:Beginner}}


[[File:Sprite Editing Example.png|thumb|An example sprite edit]]
'''Sprite Editing''' is a form of modding which consists of gfx and xml sprite editing. The following article will help you understand more about this topic.


==Sprite Editing==
==Sprite Editing==
'''Sprite editing''' is generally the most common form of My Singing Monsters modding, with it being the easiest form of modding. This article lists how to modify both gfx and xml files.
'''Sprite editing''' is generally the most common form of My Singing Monsters modding, with it being the easiest form of modding. It consists of gfx and xml sprite editing. This article lists how to modify both gfx and xml files.


===Gfx Editing===
===GFX Editing===
'''Gfx editing''' is a type of sprite editing that allows you to modify the art assets of anything in the game. This section will list all of the steps to gfx editing.
'''Gfx editing''' is a type of sprite editing that allows you to modify the art assets of anything in the game. This section will list all of the steps to gfx editing.


===Locating Gfx Files===
====Locating GFX Files====
''See [[File Locations]].''
''See [[File Locations]].''


===Premultiplied Alpha===
====Premultiplied Alpha====
'''Premultiplied alpha''' is a technique used in computer graphics to improve the quality of images with transparent or semi-transparent areas. Across all of the gfx files in the game, all gfx files are premultiplied. To properly edit gfx files, you must first unpremultiply the image. While there are many ways to do so, the most common way to do so is to use a [https://www.getpaint.net/ paint.net] plugin called [https://forums.getpaint.net/topic/113378-premultiply-alpha/ PreMultiply Alpha] and unpremultiply the image. After doing so, the image will no longer be premultiplied, and you are free to edit it. After you're done with editing, you will have to premultiply the image again, or else the modified sprites will have a crust around them in-game.
'''Premultiplied alpha''' is a technique used in computer graphics to improve the quality of images with transparent or semi-transparent areas. Across all of the gfx files in the game, all gfx files are premultiplied. To properly edit gfx files, you must first unpremultiply the image. While there are many ways to do so, the most common way to do so across modders is to use a [https://www.getpaint.net/ paint.net] plugin called [https://forums.getpaint.net/topic/113378-premultiply-alpha/ PreMultiply Alpha]. After doing so, the image will no longer be premultiplied, and you are free to edit it. After you're done with editing, you will have to premultiply the image again, or else the modified sprites will have a crust around them in-game.

===XML Editing===
'''Xml editing''' is a type of sprite editing that allows you to change each sprite's coordinates, allowing for extended sprite borders, as well as being able to change if a sprite goes up, down, left, or right, and how much it goes in that direction. The xml files used in the game are created by [https://www.codeandweb.com/texturepacker TexturePacker].

====Locating XML Files====
''See [[File Locations#Spritesheet XML files|File Locations]].''

====Spritesheet Graphic File====
Through the xml files, you are able to change what spritesheet the file calls for. To do so, you have to change the image path located after "imagePath" to match the desired image. After doing so, you also have to change the width and height called for in the xml file to match the image's width and height.

====Sprite Coordinates====
'''Sprite coordinates''' determine where the sprites in a spritesheet are. Changing the coordinates of a sprite can allow for many things, such as allowing spritesheets to be reorganized, for certain sprites' borders being able to be extended, allowing for bigger sprites, etc. Sprite coordinates are labelled as x, y, w, and h. To edit these, you simply have to edit the number specified in the quotation marks.

Latest revision as of 07:48, 2 May 2024

This article is a stub. You can help the My Singing Monsters Modding Wiki by expanding it.
This article discusses information on modding at a beginner level. Please only edit this article if you have a good understanding of the featured material.
An example sprite edit

Sprite Editing[edit]

Sprite editing is generally the most common form of My Singing Monsters modding, with it being the easiest form of modding. It consists of gfx and xml sprite editing. This article lists how to modify both gfx and xml files.

GFX Editing[edit]

Gfx editing is a type of sprite editing that allows you to modify the art assets of anything in the game. This section will list all of the steps to gfx editing.

Locating GFX Files[edit]

See File Locations.

Premultiplied Alpha[edit]

Premultiplied alpha is a technique used in computer graphics to improve the quality of images with transparent or semi-transparent areas. Across all of the gfx files in the game, all gfx files are premultiplied. To properly edit gfx files, you must first unpremultiply the image. While there are many ways to do so, the most common way to do so across modders is to use a paint.net plugin called PreMultiply Alpha. After doing so, the image will no longer be premultiplied, and you are free to edit it. After you're done with editing, you will have to premultiply the image again, or else the modified sprites will have a crust around them in-game.

XML Editing[edit]

Xml editing is a type of sprite editing that allows you to change each sprite's coordinates, allowing for extended sprite borders, as well as being able to change if a sprite goes up, down, left, or right, and how much it goes in that direction. The xml files used in the game are created by TexturePacker.

Locating XML Files[edit]

See File Locations.

Spritesheet Graphic File[edit]

Through the xml files, you are able to change what spritesheet the file calls for. To do so, you have to change the image path located after "imagePath" to match the desired image. After doing so, you also have to change the width and height called for in the xml file to match the image's width and height.

Sprite Coordinates[edit]

Sprite coordinates determine where the sprites in a spritesheet are. Changing the coordinates of a sprite can allow for many things, such as allowing spritesheets to be reorganized, for certain sprites' borders being able to be extended, allowing for bigger sprites, etc. Sprite coordinates are labelled as x, y, w, and h. To edit these, you simply have to edit the number specified in the quotation marks.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.