Easy Sprite Animation in Pico-8 - Beginner Tutorial

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 15

  • @emmanuelroux3845
    @emmanuelroux3845 Рік тому +4

    I use modulo with just one line of code: spr(first frame position + (T()*(frame per second)%number of frames +1), posX, posY). For exemple: spr(1+(T()*10%5), 64, 64)

    • @Walbertkyle
      @Walbertkyle 4 місяці тому

      You can also use a function for this, so it would lessen the tokens used and look more readable

  • @caittastic
    @caittastic Рік тому +1

    if you have sprites that arent all in a row, you can use an array of sprites and index it using time*something, modulo amount of sprites

  • @TonyoPet
    @TonyoPet Рік тому +3

    That fire animation tho! Great code tips, but I'm totally going to use that animation method for fire going forward.

    • @spacecat88
      @spacecat88  Рік тому

      Ahhh yeah! Works great for liquids and smoke too!

  • @TheHotEgg
    @TheHotEgg Рік тому +2

    I’m still gearing myself up to actually start making something but I always find your tutorials so interesting and reassuring as a complete beginner. Hopefully this year I’ll actually start!

    • @spacecat88
      @spacecat88  Рік тому +1

      You can do this! Make a really simple game!

  • @maewilkes8883
    @maewilkes8883 8 місяців тому

    I was hoping for help with coding. I also got a great trick for drawing animations!

  • @JonM00n
    @JonM00n 6 місяців тому

    im following this to a T and its great. but i cant seem to figure out how to animate when walking a direction. for example left and right walking animations. im super new to this :S

    • @Woog_Lord
      @Woog_Lord 4 місяці тому

      SPR function has size and horizontal flip and vertical flip as parameters, so you can make a bool for facing left/right and just set it to true/false based off what button is pressed

  • @SMABEM
    @SMABEM 11 місяців тому +1

    Just bought Pico-8 looking forward to starting to make games. So it uses an 8x8 sprites. If I want a 32×32 sprite do I need to combine smaller sprites? How does that work?

    • @spacecat88
      @spacecat88  11 місяців тому +1

      I have a vid on 16x16. It's similar to that

    • @SMABEM
      @SMABEM 11 місяців тому +1

      @@spacecat88 will definitely check it out! Love your stuff.

  • @SALSAFOX7
    @SALSAFOX7 Рік тому

    Спасибо !