The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Visible Lost Health [Rep]
 此主题已被置顶,因此可能具有重要性
Will  [开发者] 2021 年 6 月 18 日 下午 2:24
API for Modders
There is an API in Visible Lost Health. To see all the functions added and examples for how to implement those functions in your mod, go to the mod folder and open vlh_api.lua.
最后由 Will 编辑于; 2021 年 6 月 18 日 下午 2:51
< >
正在显示第 1 - 3 条,共 3 条留言
Will  [开发者] 2021 年 6 月 18 日 下午 2:33 
Adding your own sprites

Resources you need:
  • A spritesheet that contains your new sprites for the health icons. You can see an example spritesheet in the 'examples' directory of this mod. The example spritesheet has the sprite boundaries for the hearts color coded in red and blue for ease of use.
  • An anm2 file that parses your spritesheet. This anm2 file MUST use the same animation names as the anm2 files currently in this mod (i.e. "Lost_Heart", "Lost_Dead", etc.). You can find an example anm2 file in the 'examples' directory.

Function to use: VLH.SetIconFilepath(filepath, modName)
@param filepath (string) The filepath to your anm2 file for your new sprites, starting at the Repentance mods directory.
@param modName (string) Optional. The name of your mod; this will overwrite "CUSTOM" in MCM settings.

You can also find a psd file in the 'examples' directory that includes the sprite artwork for the current hearts, if you want to use that as a starting point for your own sprites.
最后由 Will 编辑于; 2021 年 6 月 20 日 上午 11:07
ryś 2021 年 6 月 20 日 上午 3:58 
Hey. I did everything that i must, but my sprites isn't working.
It shows normal hearts instead of mine.
How I can repair this?
je suis une pomme de terre  [开发者] 2021 年 6 月 20 日 上午 4:44 
引用自 Rysiekk
Hey. I did everything that i must, but my sprites isn't working.
It shows normal hearts instead of mine.
How I can repair this?
I'll send you a pm
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50