Godot Sprite Sheet Correction

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2020
  • How to correctly center a sprite animation frame within a cell.
    Link to the asset pack. rvros.itch.io/pixel-monsters-2
  • เกม

ความคิดเห็น • 25

  • @mysterious_monolith_
    @mysterious_monolith_ ปีที่แล้ว +3

    Thank you for saving me 4 and a half hours!

  • @nicholaswhitman4620
    @nicholaswhitman4620 2 ปีที่แล้ว

    About ready to give up on animation player until this vid, awesome job

  • @alexeynikulin2159
    @alexeynikulin2159 8 หลายเดือนก่อน

    Thank you so much!!! You are save my time!!!

  • @smittefyXD
    @smittefyXD ปีที่แล้ว

    Obrigado pela Legenda! Saudações do Brasil BR

  • @Gamer-br1fk
    @Gamer-br1fk ปีที่แล้ว

    Was about to give up tyyy :D

  • @mikeph712
    @mikeph712 3 ปีที่แล้ว +2

    Super helpful

  • @eedoan
    @eedoan 3 ปีที่แล้ว

    Good to know! Thanks!

  • @gcpa7539
    @gcpa7539 2 หลายเดือนก่อน +2

    I'm trying to figure out why the texture region tab doesn't show up for me

  • @crustacean4485
    @crustacean4485 ปีที่แล้ว

    thank you so much omg

  • @ghostwarrior-ni1xb
    @ghostwarrior-ni1xb ปีที่แล้ว

    simple and effective thks

  • @JuanS_DuodecimStudio
    @JuanS_DuodecimStudio 2 หลายเดือนก่อน

    Thanks !

  • @raymondmasupha9757
    @raymondmasupha9757 8 หลายเดือนก่อน

    Thank YOU

  • @fabianojeda3078
    @fabianojeda3078 2 ปีที่แล้ว

    Thank you so much

  • @Silver-nm2if
    @Silver-nm2if 3 ปีที่แล้ว +8

    I just fixed it in aseprite. Like i just added the canvas size in aseprite to center it.

    • @Jack9C
      @Jack9C 2 ปีที่แล้ว

      You would have to split every sprite, center every sprite, before re-sheeting it. That doesn't really solve the problem either. Centering is fine if they are all uniform. That's rather uncommon. For example, the death animation is going to be misshapen (as it extends farther than the rest, it will fall and slide backwards to stay centered), so you have to figure out the distance of the death sprite max and extend every sprite canvas on both sides (and top), the total distance from the largest sprite horizontally and vertically, before centering and re-sheeting.
      Given that you can even see minor differences between frames, on the example sheet he used, this adjustment is not sufficient for most sprite sheets. I'd still go back and split with Alferd Spritesheet Unpacker, look at sprite dimensions of the files, load into Photopea and adjust each one manually, while naming them, then repack with Texturepacker. Sprite adjustments are what I do when I wake up in the morning.

    • @youcanchangehandlewithin14days
      @youcanchangehandlewithin14days 2 ปีที่แล้ว

      does aseprite is free?

    • @ArabGameDev
      @ArabGameDev 2 ปีที่แล้ว +1

      @@Jack9C
      asprite canvas size add empty space to canvas that means every frame automatically

    • @hiiambarney4489
      @hiiambarney4489 ปีที่แล้ว +1

      @@Jack9C As an experienced Aseprite user (since I made well over 1k$ with it, I guess you could say professional to some extend) I strongly disagree.
      The best course of action is to make the canvas for all sprites equal and for simplicity square.
      The key is to make them way oversized for the usual sprites but accomodating for your one animation that is really out of bounds from the others.
      Yes, you have to center every sprite, but not individually either.
      You can use the move tool (v shortcut by default) and select multiple frames (for example an idle animation) and move them all at once.
      If you use this tool and press CTRL you also see the distance between the sprite bounds and every edge of the canvas so it's pretty fast to center.
      Although I usually would just add all sprite animations to one file, region them, edit them where needed, and put a background with a sort of crosshair below them, perhaps a pseudo ground line too.
      It may not be as quick as the method shown here but it sure is more precise.
      Usually you don't get offcentered sprites anyways or make your own.

  • @Vpg001
    @Vpg001 9 หลายเดือนก่อน

    Is there a way to do it with an AnimatedSprite2d node?

    • @Vpg001
      @Vpg001 9 หลายเดือนก่อน

      Here's my solution:
      Instead of "animated_sprite_2d.flip_h = (input_axis < 0)",
      I used, "animated_sprite_2d.scale.x = input_axis"

  • @willisthehy
    @willisthehy ปีที่แล้ว +1

    do this for godot 4 i need help omfg
    hate this crap makes me wanna stop before i even try

    • @kagemwf
      @kagemwf ปีที่แล้ว

      is your texture region also missing?

    • @sofiz5430
      @sofiz5430 11 หลายเดือนก่อน

      mines is toooo
      @@kagemwf

    • @sofiz5430
      @sofiz5430 11 หลายเดือนก่อน

      Ikkk most of what i do is search for shit

    • @Kunaii5618
      @Kunaii5618 8 หลายเดือนก่อน

      you have to hit edit region inside the of the region tab where he went to hit enable