I know that the sprite is a bit big, but i want to try how it will look in game.
link to image: https://imgur.com/a/j39Yy
Code: Select all
INBN_HammerMech = Pawn:new{
Name = "Hammer Mech",
Class = "Prime",
Health = 3,
MoveSpeed = 4,
Image = "INBN_HammerMech",
ImageOffset = 3,
SkillList = { "INBN_Slam" },
SoundLocation = "/mech/prime/rock_mech/",
DefaultTeam = TEAM_PLAYER,
ImpactMaterial = IMPACT_METAL,
Massive = true
}
AddPawn("INBN_HammerMech")
ANIMS.INBN_HammerMech = ANIMS.MechUnit:new{ Image = "units/player/mech_hammer.png", PosX = -23, PosY = -7 }
ANIMS.INBN_HammerMecha = ANIMS.MechUnit:new{ Image = "units/player/mech_hammer_a.png", PosX = -23, PosY = -7, NumFrames = 4 }
ANIMS.INBN_HammerMechw = ANIMS.MechUnit:new{ Image = "units/player/mech_hammer_w.png", PosX = -23, PosY = -7 }
ANIMS.INBN_HammerMechh_broken = ANIMS.MechUnit:new{ Image = "units/player/mech_hammer_broken.png", PosX = -23, PosY = -7 }
ANIMS.INBN_HammerMechw_broken = ANIMS.MechUnit:new{ Image = "units/player/mech_hammer_w_broken.png", PosX = -23, PosY = -7 }
ANIMS.INBN_HammerMech_ns = ANIMS.MechIcon:new{ Image = "units/player/mech_hammer_ns.png" }
inventex wrote:Find the file pawns.lua
Towards the bottom there are all the animations. Just edit pos X and pos Y, increasing or decreasing as desired until for each sprite it looks like it is positioned good.
So you will need to test:
Normal,
Animated,
Broken,
wet,
Wet Broken.
Code: Select all
line 491 Location["combat/icons/icon_healthbar_shadow.png"] = Point(-15,-12)