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)
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!
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
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
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?
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)
You can also use a function for this, so it would lessen the tokens used and look more readable
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
That fire animation tho! Great code tips, but I'm totally going to use that animation method for fire going forward.
Ahhh yeah! Works great for liquids and smoke too!
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!
You can do this! Make a really simple game!
I was hoping for help with coding. I also got a great trick for drawing animations!
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
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
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?
I have a vid on 16x16. It's similar to that
@@spacecat88 will definitely check it out! Love your stuff.
Спасибо !
You're welcome!!!