Jump to content

antonigaming

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by antonigaming

  1. On 4/2/2023 at 8:26 PM, notmyproblem said:

    If anyone is looking to remove death animations here is the code

     

    var path = @"C:\RO\data\sprite\test";
    
    foreach (var actFile in Directory.GetFiles(path, "*.act")) {
        var sprFile = actFile.ReplaceExtension(".spr");
        var act2 = new Act(actFile, sprFile);
        
        for (int aid = 32; aid < act2.Actions.Count; aid++) {
            for (int fid = act2.Actions[aid].Frames.Count - 1; fid >= 1; fid--) {
            act2[aid].Frames.RemoveAt(fid);
               }
        }
        
        act2.SaveWithSprite(actFile, sprFile);
    }

     

    What if I want to make the death animation faster and not totally removing it?

×
×
  • Create New...